LibBeamApi
1.3.0
|
Error return class. More...
#include <BError.h>
Public Types | |
enum | Type { NONE = 0, ERROR = 1 } |
Public Member Functions | |
BError (int errNo=NONE, BString errStr="") | |
Create object. More... | |
BError (BString errStr) | |
Create with error set and error string. More... | |
BError | copy () |
Return an independant copy. More... | |
BError & | set (int errNo, BString errStr="") |
Set error number and message. More... | |
BError & | clear () |
Clear the error. More... | |
BError & | setError (BString errStr="") |
Set error type ERROR with optional message. More... | |
BString | getString () const |
Get error message. More... | |
int | getNumber () const |
Get The error number. More... | |
int | num () const |
Get The error number. More... | |
int | getErrorNo () const |
Get The error number. More... | |
operator int () const | |
Return error number. More... | |
Private Attributes | |
int | oerrNo |
BString | oerrStr |
Error return class.
enum BError::Type |
BError::BError | ( | BString | errStr | ) |
Create with error set and error string.
BError & BError::clear | ( | ) |
Clear the error.
BError BError::copy | ( | ) |
Return an independant copy.
int BError::getErrorNo | ( | ) | const |
Get The error number.
int BError::getNumber | ( | ) | const |
Get The error number.
BString BError::getString | ( | ) | const |
Get error message.
int BError::num | ( | ) | const |
Get The error number.
|
inline |
Return error number.
|
private |
|
private |