Embedded Multicore Building Blocks V1.0.0
Public Member Functions | List of all members
embb::mtapi::StatusException Class Reference

Represents an MTAPI error state and is thrown by almost all mtapi_cpp methods. More...

#include <status_exception.h>

Public Member Functions

 StatusException (const char *message)
 Constructs a StatusException. More...
 
virtual int Code () const
 Code associated with this exception. More...
 
virtual const char * What () const throw ()
 Returns the error message. More...
 

Detailed Description

Represents an MTAPI error state and is thrown by almost all mtapi_cpp methods.

Constructor & Destructor Documentation

embb::mtapi::StatusException::StatusException ( const char *  message)
explicit

Constructs a StatusException.

Concurrency
Not thread-safe
Parameters
messageThe message to use.

Member Function Documentation

virtual int embb::mtapi::StatusException::Code ( ) const
virtual

Code associated with this exception.

Returns
An integer representing the code of the exception
Concurrency
Thread-safe and wait-free

Implements embb::base::Exception.

virtual const char* embb::base::Exception::What ( ) const
throw (
)
virtualinherited

Returns the error message.

Returns
Pointer to error message