DUNE: Uniform Navigational Environment  2016.05.0
DUNE::System::Error Class Reference

Detailed Description

Public Member Functions

 Error (int code, const std::string &msg)
 
 Error (int code, const std::string &msg, const std::string &args)
 
 Error (int code, const std::string &msg, int args)
 
 Error (const std::string &estr, const std::string &msg)
 
 Error (const std::string &estr, const std::string &msg, const std::string &args)
 
 ~Error (void) throw ()
 
const char * what (void) const throw ()
 

Static Public Member Functions

static std::string getLastMessage (void)
 
static std::string getMessage (int ec)
 

Constructor & Destructor Documentation

DUNE::System::Error::Error ( int  code,
const std::string &  msg 
)
inline

Constructor.

Parameters
[in]codeerror code.
[in]msgmessage to the user.

References getMessage().

DUNE::System::Error::Error ( int  code,
const std::string &  msg,
const std::string &  args 
)
inline

Constructor.

Parameters
[in]codeerror code.
[in]msgmessage to the user.
[in]argsuser message arguments.

References getMessage().

DUNE::System::Error::Error ( int  code,
const std::string &  msg,
int  args 
)
inline

Constructor.

Parameters
[in]codeerror code.
[in]msgmessage to the user.
[in]argsuser message argument.

References getMessage().

DUNE::System::Error::Error ( const std::string &  estr,
const std::string &  msg 
)
inline

Constructor.

Parameters
[in]estrerror message.
[in]msgmessage to the user.
DUNE::System::Error::Error ( const std::string &  estr,
const std::string &  msg,
const std::string &  args 
)
inline

Constructor.

Parameters
[in]estrerror message.
[in]msgmessage to the user.
[in]argsuser message arguments.
DUNE::System::Error::~Error ( void  )
throw (
)
inline

Destructor.

Member Function Documentation

static std::string DUNE::System::Error::getMessage ( int  ec)
inlinestatic

Retrieve the message associated with a specific error code.

Parameters
[in]ecerror code.
Returns
error message.

Referenced by Error(), getLastMessage(), and DUNE::Concurrency::SharedMemory::~SharedMemory().

const char* DUNE::System::Error::what ( void  ) const
throw (
)
inline

Get the full description of the exception.

Returns
description c string.

Referenced by DUNE::Tasks::Creator::fromDDT().

Collaboration diagram for DUNE::System::Error:
Collaboration graph