Does not inherit
clone() Exception() getFileName() |
getFunctionName() getLineNumber() operator!=() |
operator=() operator==() raise() |
what() why() ~Exception() |
#include rwsf/core/Exception.h
rwsf::Exception is the base class for all exceptions thrown in the Hydra product suite.
Exception(const ExceptionInfo &);
Constructs a basic exception with no message with the given exception info (file name, line number, etc.).
Exception(const char * msg);
Constructs a basic exception with the given message.
Deprecated. Use the constructor based on LocalizedMessage instead.
Exception(const std::string & msg);
Constructs a basic exception with the given message.
Deprecated. Use the constructor based on LocalizedMessage instead.
Exception(const rwsf::ExceptionInfo & eInfo, const LocalizedMessage & msg);
Constructs a basic exception with a given message with the given exception info (file name, line number, etc.).
Exception(const Exception &);
Copy constructor.
virtual ~Exception();
Destructor.
Exception * clone(void) const;
Creates a new copy of self on the heap. Overridden in derived classes to construct an instance of the correct derived type. It is up to the user to ensure that the returned Exception object is deleted.
const char * getFileName() const;
Returns char* containing the file name associated with the exception when it was constructed. This method may return an empty string if the file name was not specified.
const char * getFunctionName() const;
Returns char* containing the function name associated with the exception when it was constructed. This method may return an empty string if the function name was not specified.
unsigned long getLineNumber() const;
Returns the line number associated with the exception when it was constructed. This method will return 0 if the line number was not specified.
void raise(void) const;
Throws self. Overridden in derived class to throw correct derived type.
const char * what() const;
Returns a char* containing the exception message.
const char * why() const;
Returns a char* containing the exception message. By default, this method forwards to the what() member function.
Deprecated. Use the what() method for accessing the exception message.
bool operator!=(const Exception exc2);
Comparison operator.
Exception & operator=(const Exception & m);
Assignment operator. Makes self a deep copy of m.
bool operator==(const Exception exc2);
Comparison operator.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.