Public Member Functions
efl::eina::error_category Struct Reference

Specialized error category for Eina errors. More...

Public Member Functions

const char * name () const throw ()
 Name of the error category. More...
 
bool equivalent (int code, eina::error_condition const &condition) const throw ()
 Check if the given error code is equivalent to the given error condition. More...
 
bool equivalent (eina::error_code const &code, int condition) const throw ()
 Check if the given error code is equivalent to the given error condition. More...
 
std::string message (int condition) const
 Get the message related with the given error condition. More...
 

Detailed Description

Specialized error category for Eina errors.

Member Function Documentation

◆ name()

const char* efl::eina::error_category::name ( ) const
throw (
)
inline

Name of the error category.

Returns
String containing the word "eina"

◆ equivalent() [1/2]

bool efl::eina::error_category::equivalent ( int  code,
eina::error_condition const &  condition 
) const
throw (
)
inline

Check if the given error code is equivalent to the given error condition.

Parameters
codeInteger representing the error code.
conditioneina::error_condition object.
Returns
true if code is equivalent to condition.

◆ equivalent() [2/2]

bool efl::eina::error_category::equivalent ( eina::error_code const &  code,
int  condition 
) const
throw (
)
inline

Check if the given error code is equivalent to the given error condition.

Parameters
codeeina::error_code object.
conditionInteger representing the error condition.
Returns
true if code is equivalent to condition.

◆ message()

std::string efl::eina::error_category::message ( int  condition) const
inline

Get the message related with the given error condition.

Parameters
conditionEina error condition.
Returns
String containing the message related with the given error condition.

This member function returns the error message related with the given error condition code.

Note
When the given condition code is not registered within the Eina errors it will return a string indicating that an error message is not available.

References eina_error_msg_get().