CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
Exceptions

Exception classes and error handling convenience functions More...

Collaboration diagram for Exceptions:

Classes

class  Exception
 Abstract base class for exceptions More...
 
class  IoExhaustion
 Input or Output exhaustion. More...
 
class  OutputExhaustion
 Output exhaustion. More...
 
class  InputExhaustion
 Input exhaustion. More...
 
class  Timeout
 Operation timed out. More...
 
class  UsageError
 User input ambiguous, report back to user and provide guidance More...
 
class  HelpRequest
 User requested help More...
 
class  VersionRequest
 User requested the application version More...
 
class  EncodingError
 Some encoded data is malformed. More...
 
class  UnicodeError
 Encoding/decoding of an Unicode string failed. More...
 
class  PropertyBindingError
 General error binding properties. More...
 
class  PropertyBindingLoop
 Property binding loop detected More...
 
class  CommandNotFound
 Command not found More...
 
class  DebugError
 Debugging hint on internal system malfunction. More...
 
class  Error
 Generic application error. More...
 
class  SystemError
 System call failed More...
 
class  SystemResourceError
 System call failed to perform an action on a named resource (e.g. More...
 
class  SystemDebugError
 Debugging hint on system call failure. More...
 

Macros

#define CC_SYSTEM_RESOURCE_ERROR(errorCode, resource)    throw SystemResourceError(errorCode, resource, __FILE__, __LINE__)
 Convenience macro to throw a SystemResourceError.
 
#define CC_SYSTEM_DEBUG_ERROR(errorCode)    throw SystemDebugError(errorCode, __FILE__, __LINE__)
 Convenience macro to throw a SystemDebugError.
 
#define CC_SYSCALL(ret)   systemCall(ret, __FILE__, __LINE__)
 Convenience macro to invoke a system call and automatically have it throw a SystemDebugError on errors.
 
#define CC_SYSTEM_ERROR(errorCode, resource)
 Convenience macro to throw a SystemDebugError or SystemResourceError.
 

Functions

String systemError (int errorCode)
 Translate system error code to error message.
 

Detailed Description

Exception classes and error handling convenience functions

Macro Definition Documentation

◆ CC_SYSTEM_RESOURCE_ERROR

#define CC_SYSTEM_RESOURCE_ERROR ( errorCode,
resource )    throw SystemResourceError(errorCode, resource, __FILE__, __LINE__)

Convenience macro to throw a SystemResourceError.

◆ CC_SYSTEM_DEBUG_ERROR

#define CC_SYSTEM_DEBUG_ERROR ( errorCode)     throw SystemDebugError(errorCode, __FILE__, __LINE__)

Convenience macro to throw a SystemDebugError.

◆ CC_SYSCALL

#define CC_SYSCALL ( ret)    systemCall(ret, __FILE__, __LINE__)

Convenience macro to invoke a system call and automatically have it throw a SystemDebugError on errors.

◆ CC_SYSTEM_ERROR

#define CC_SYSTEM_ERROR ( errorCode,
resource )
Value:
{ \
if (resource != "") CC_SYSTEM_RESOURCE_ERROR(errorCode, resource); \
else CC_SYSTEM_DEBUG_ERROR(errorCode); \
}
#define CC_SYSTEM_RESOURCE_ERROR(errorCode, resource)
Convenience macro to throw a SystemResourceError.
Definition SystemError:109
#define CC_SYSTEM_DEBUG_ERROR(errorCode)
Convenience macro to throw a SystemDebugError.
Definition SystemError:115

Convenience macro to throw a SystemDebugError or SystemResourceError.

Function Documentation

◆ systemError()

String systemError ( int errorCode)

Translate system error code to error message.