Basic Exception. More...
#include <rexception.h>
Inheritance diagram for RException:
Collaboration diagram for RException:
Public Member Functions | |
RException (void) | |
RException (const RString &str) | |
RException (const RString &func, long where, const RString &str) | |
RString | GetMsg (void) const |
virtual | ~RException (void) |
Protected Member Functions | |
void | SetMsg (const RString &str) |
void | SetMsg (const RString &func, long where, const RString &str) |
Protected Attributes | |
RString | Msg |
Private Member Functions | |
void | Null (void) |
Detailed Description
Basic Exception.
The RException class provides a basic representation for an exception.
Constructor & Destructor Documentation
RException | ( | void | ) |
Construct an exception.
RException | ( | const RString & | str | ) |
Construct an exception.
- Parameters
-
str Message of the error.
RException | ( | const RString & | func, |
long | where, | ||
const RString & | str | ||
) |
Construct an exception with the message "func [where]: str". A typical use is:
if(!ptr)
- See also
- The mThrowRException macro.
- Parameters
-
func Function producing the error. where Line position of the error. str Message of the error.
|
virtual |
Destructor.
Member Function Documentation
|
private |
RString GetMsg | ( | void | ) | const |
Get the content of the exception.
- Returns
- Pointer to a C String.
|
protected |
Set the error message.
- Parameters
-
str Message of the error.
Set the error message.
- Parameters
-
func Function producing the error. where Line position of the error. str Message of the error.
Field Documentation
|
protected |
Message holding some information.