Pothos
0.4.1-gb758ed46
The Pothos dataflow programming software suite
|
#include <Exception.hpp>
Public Member Functions | |
Exception (const std::string &msg, int code=0) | |
Exception (const std::string &msg, const std::string &arg, int code=0) | |
Creates an exception. More... | |
Exception (const std::string &msg, const Exception &nested, int code=0) | |
Creates an exception. More... | |
Exception (const Exception &exc) | |
~Exception () throw () | |
Copy constructor. More... | |
Exception & | operator= (const Exception &exc) |
Destroys the exception and deletes the nested exception. More... | |
virtual const char * | name () const throw () |
Assignment operator. More... | |
virtual const char * | className () const throw () |
Returns a static string describing the exception. More... | |
virtual const char * | what () const throw () |
Returns the name of the exception class. More... | |
const Exception * | nested () const |
const std::string & | message () const |
int | code () const |
Returns the message text. More... | |
std::string | displayText () const |
Returns the exception code if defined. More... | |
virtual Exception * | clone () const |
virtual void | rethrow () const |
Protected Member Functions | |
Exception (int code=0) | |
void | message (const std::string &msg) |
Standard constructor. More... | |
void | extendedMessage (const std::string &arg) |
Sets the message for the exception. More... | |
This is the base class for all exceptions defined in the Pothos class library.
Pothos::Exception::Exception | ( | const std::string & | msg, |
int | code = 0 |
||
) |
Pothos::Exception::Exception | ( | const std::string & | msg, |
const std::string & | arg, | ||
int | code = 0 |
||
) |
Creates an exception.
Pothos::Exception::Exception | ( | const std::string & | msg, |
const Exception & | nested, | ||
int | code = 0 |
||
) |
Creates an exception.
Pothos::Exception::Exception | ( | const Exception & | exc | ) |
Creates an exception and stores a clone of the nested exception.
Pothos::Exception::~Exception | ( | ) | ||
throw | ( | |||
) |
Copy constructor.
|
protected |
(Re)Throws the exception.
This is useful for temporarily storing a copy of an exception (see clone()), then throwing it again.
|
virtual |
Returns a static string describing the exception.
Reimplemented in Pothos::BadCastException, Pothos::ApplicationException, Pothos::UnknownURISchemeException, Pothos::ReadFileException, Pothos::WriteFileException, Pothos::OpenFileException, Pothos::CreateFileException, Pothos::FileAccessDeniedException, Pothos::FileReadOnlyException, Pothos::PathNotFoundException, Pothos::FileNotFoundException, Pothos::FileExistsException, Pothos::FileException, Pothos::ProtocolException, Pothos::IOException, Pothos::PathSyntaxException, Pothos::CircularReferenceException, Pothos::SyntaxException, Pothos::DataFormatException, Pothos::DataException, Pothos::OutOfMemoryException, Pothos::NoPermissionException, Pothos::PoolOverflowException, Pothos::PropertyNotSupportedException, Pothos::NoThreadAvailableException, Pothos::LibraryAlreadyLoadedException, Pothos::LibraryLoadException, Pothos::RegularExpressionException, Pothos::SystemException, Pothos::TimeoutException, Pothos::ExistsException, Pothos::NotFoundException, Pothos::RuntimeException, Pothos::UnhandledException, Pothos::SignalException, Pothos::InvalidAccessException, Pothos::IllegalStateException, Pothos::RangeException, Pothos::NotImplementedException, Pothos::InvalidArgumentException, Pothos::BugcheckException, Pothos::NullValueException, Pothos::NullPointerException, Pothos::AssertionViolationException, and Pothos::LogicException.
|
virtual |
Returns a string consisting of the message name and the message text.
Reimplemented in Pothos::BadCastException, Pothos::ApplicationException, Pothos::UnknownURISchemeException, Pothos::ReadFileException, Pothos::WriteFileException, Pothos::OpenFileException, Pothos::CreateFileException, Pothos::FileAccessDeniedException, Pothos::FileReadOnlyException, Pothos::PathNotFoundException, Pothos::FileNotFoundException, Pothos::FileExistsException, Pothos::FileException, Pothos::ProtocolException, Pothos::IOException, Pothos::PathSyntaxException, Pothos::CircularReferenceException, Pothos::SyntaxException, Pothos::DataFormatException, Pothos::DataException, Pothos::OutOfMemoryException, Pothos::NoPermissionException, Pothos::PoolOverflowException, Pothos::PropertyNotSupportedException, Pothos::NoThreadAvailableException, Pothos::LibraryAlreadyLoadedException, Pothos::LibraryLoadException, Pothos::RegularExpressionException, Pothos::SystemException, Pothos::TimeoutException, Pothos::ExistsException, Pothos::NotFoundException, Pothos::RuntimeException, Pothos::UnhandledException, Pothos::SignalException, Pothos::InvalidAccessException, Pothos::IllegalStateException, Pothos::RangeException, Pothos::NotImplementedException, Pothos::InvalidArgumentException, Pothos::BugcheckException, Pothos::NullValueException, Pothos::NullPointerException, Pothos::AssertionViolationException, and Pothos::LogicException.
|
inline |
Returns the message text.
std::string Pothos::Exception::displayText | ( | ) | const |
Returns the exception code if defined.
|
protected |
Sets the message for the exception.
|
inline |
Returns a pointer to the nested exception, or null if no nested exception exists.
|
inlineprotected |
Standard constructor.
|
virtual |
Assignment operator.
Reimplemented in Pothos::BadCastException, Pothos::ApplicationException, Pothos::UnknownURISchemeException, Pothos::ReadFileException, Pothos::WriteFileException, Pothos::OpenFileException, Pothos::CreateFileException, Pothos::FileAccessDeniedException, Pothos::FileReadOnlyException, Pothos::PathNotFoundException, Pothos::FileNotFoundException, Pothos::FileExistsException, Pothos::FileException, Pothos::ProtocolException, Pothos::IOException, Pothos::PathSyntaxException, Pothos::CircularReferenceException, Pothos::SyntaxException, Pothos::DataFormatException, Pothos::DataException, Pothos::OutOfMemoryException, Pothos::NoPermissionException, Pothos::PoolOverflowException, Pothos::PropertyNotSupportedException, Pothos::NoThreadAvailableException, Pothos::LibraryAlreadyLoadedException, Pothos::LibraryLoadException, Pothos::RegularExpressionException, Pothos::SystemException, Pothos::TimeoutException, Pothos::ExistsException, Pothos::NotFoundException, Pothos::RuntimeException, Pothos::UnhandledException, Pothos::SignalException, Pothos::InvalidAccessException, Pothos::IllegalStateException, Pothos::RangeException, Pothos::NotImplementedException, Pothos::InvalidArgumentException, Pothos::BugcheckException, Pothos::NullValueException, Pothos::NullPointerException, Pothos::AssertionViolationException, and Pothos::LogicException.
|
inline |
Returns a static string describing the exception.
Same as name(), but for compatibility with std::exception.
Destroys the exception and deletes the nested exception.
|
virtual |
Creates an exact copy of the exception.
The copy can later be thrown again by invoking rethrow() on it.
Reimplemented in Pothos::BadCastException, Pothos::ApplicationException, Pothos::UnknownURISchemeException, Pothos::ReadFileException, Pothos::WriteFileException, Pothos::OpenFileException, Pothos::CreateFileException, Pothos::FileAccessDeniedException, Pothos::FileReadOnlyException, Pothos::PathNotFoundException, Pothos::FileNotFoundException, Pothos::FileExistsException, Pothos::FileException, Pothos::ProtocolException, Pothos::IOException, Pothos::PathSyntaxException, Pothos::CircularReferenceException, Pothos::SyntaxException, Pothos::DataFormatException, Pothos::DataException, Pothos::OutOfMemoryException, Pothos::NoPermissionException, Pothos::PoolOverflowException, Pothos::PropertyNotSupportedException, Pothos::NoThreadAvailableException, Pothos::LibraryAlreadyLoadedException, Pothos::LibraryLoadException, Pothos::RegularExpressionException, Pothos::SystemException, Pothos::TimeoutException, Pothos::ExistsException, Pothos::NotFoundException, Pothos::RuntimeException, Pothos::UnhandledException, Pothos::SignalException, Pothos::InvalidAccessException, Pothos::IllegalStateException, Pothos::RangeException, Pothos::NotImplementedException, Pothos::InvalidArgumentException, Pothos::BugcheckException, Pothos::NullValueException, Pothos::NullPointerException, Pothos::AssertionViolationException, and Pothos::LogicException.
|
virtual |
Returns the name of the exception class.