#include <BException.h>

Public Member Functions | |
| BException (const BString &msg, const BString &loc) | |
| Constructor. | |
| BException (const BString &msg, const BString &loc, const BString &details) | |
| Constructor. | |
| BException (const BException &source) | |
| Copy constructor. | |
| BException (const BString &msg) | |
| Constructor. | |
| BException () | |
| Default constructor. | |
| const BString & | GetDescription (void) const |
| Gets the description for this BException. | |
| BString | GetDetailedMessage (void) const |
| Gets a formatted message that includes the description, location, and details. | |
| const BString & | GetDetails (void) const |
| Gets the additional details associated with this BException. | |
| const BString & | GetLocation (void) const |
| Gets the location from which this BException was thrown. | |
| const BString & | GetMessage (void) const |
| Gets the current exception message. | |
| void | LogException (void) |
| Writes the exception message to the log file. | |
| void | SetDetails (const BString &details) |
| Sets additional details for this BException. | |
| void | SetLocation (const BString &loc) |
| Sets the location from which this BException was thrown. | |
| void | SetMessage (const BString &msg) |
| Sets the exception message. | |
| virtual const char * | what () const throw () |
| Overridden from std::exception. | |
| virtual | ~BException () throw () |
| Destructor. | |
| BException | ( | ) | [inline] |
Default constructor.
| BException | ( | const BString & | msg | ) | [inline] |
| BException | ( | const BException & | source | ) | [inline] |
| BException | ( | const BString & | msg, | |
| const BString & | loc, | |||
| const BString & | details | |||
| ) | [inline] |
Constructor.
| msg | A message that describes the BException. | |
| loc | The location where the exception occurred. | |
| details | Additional details associated with the exception. |
| BException | ( | const BString & | msg, | |
| const BString & | loc | |||
| ) | [inline] |
Constructor.
| msg | A message that describes the BException. | |
| loc | The location where the exception occurred. |
| virtual ~BException | ( | ) | throw () [inline, virtual] |
Destructor.
| const BString& GetDescription | ( | void | ) | const [inline] |
| BString GetDetailedMessage | ( | void | ) | const |
Gets a formatted message that includes the description, location, and details.
| const BString& GetDetails | ( | void | ) | const [inline] |
Gets the additional details associated with this BException.
| const BString& GetLocation | ( | void | ) | const [inline] |
Gets the location from which this BException was thrown.
| const BString& GetMessage | ( | void | ) | const [inline] |
Gets the current exception message.
| void LogException | ( | void | ) |
Writes the exception message to the log file.
If you construct a BException using the default constructor, then fill in the code, location, and details using the respective set-methods, then you must call this method if you want to log the exception. If you construct a BException using any of the other constructors, this will be done automatically.
| void SetDetails | ( | const BString & | details | ) | [inline] |
Sets additional details for this BException.
| details | Additional details about this BException. An example would be a file name associated with a "file not found" exception. |
| void SetLocation | ( | const BString & | loc | ) | [inline] |
Sets the location from which this BException was thrown.
| loc | The location from which this BException was thrown. Generally, this will be a method name. |
| void SetMessage | ( | const BString & | msg | ) | [inline] |
Sets the exception message.
| msg | The new exception message. |
| virtual const char* what | ( | ) | const throw () [virtual] |
Overridden from std::exception.
Provides a description of this BException.