RobWorkProject
Public Member Functions | List of all members
Exception Class Reference

Standard exception type of RobWork. More...

#include <Exception.hpp>

Inherits exception.

Public Member Functions

 Exception (const Message &message)
 Constructor. More...
 
 Exception (int id, const Message &message)
 Constructor. More...
 
const MessagegetMessage () const
 The message for the user describing the reason for the error. More...
 
int getId () const
 get id of this exception message More...
 
const char * what () const throw ()
 readable description of this esception More...
 

Detailed Description

Standard exception type of RobWork.

All exception thrown within RobWork are of the type Exception.

An exception contains a message (of type Message) for the user and nothing else.

Constructor & Destructor Documentation

◆ Exception() [1/2]

Exception ( const Message message)
inline

Constructor.

Parameters
message[in] A message for a user.

◆ Exception() [2/2]

Exception ( int  id,
const Message message 
)
inline

Constructor.

Parameters
id[in] Integer Id to identify the exception
message[in] A message for a user.

Member Function Documentation

◆ getId()

int getId ( ) const
inline

get id of this exception message

Returns
id

◆ getMessage()

const Message& getMessage ( ) const
inline

The message for the user describing the reason for the error.

Returns
The message for the user.

◆ what()

const char* what ( ) const
throw (
)
inline

readable description of this esception

Returns
string description readable description of this esception
string description

The documentation for this class was generated from the following file: