Account
LibTmsApi 2.3.0 |
BError Class Reference
Error return class. More...
#include <BError.h>
Inheritance diagram for BError:
Public Member Functions | |
BError (int errNo=ErrorOk, BString errStr="") | |
Create object. | |
BError (BString errStr) | |
Create with error set and error string. | |
BError | copy () |
Return an independant copy. | |
BError & | set (int errNo, BString errStr="") |
Set error number and message. | |
BError & | clear () |
Clear the error. | |
BError & | setError (BString errStr="") |
Set error type ERROR with optional message. | |
BString | getString () const |
Get error message. | |
int | getNumber () const |
Get The error number. | |
int | num () const |
Get The error number. | |
const char * | str () const |
Return a char* string. | |
int | getErrorNo () const |
Get The error number. | |
operator int () const | |
Return error number. | |
Private Attributes | |
int | oerrNo |
BString | oerrStr |
Detailed Description
Error return class.
Constructor & Destructor Documentation
◆ BError() [1/2]
◆ BError() [2/2]
BError::BError | ( | BString | errStr | ) |
Create with error set and error string.
Member Function Documentation
◆ clear()
BError & BError::clear | ( | ) |
Clear the error.
◆ copy()
BError BError::copy | ( | ) |
Return an independant copy.
◆ getErrorNo()
int BError::getErrorNo | ( | ) | const |
Get The error number.
◆ getNumber()
int BError::getNumber | ( | ) | const |
Get The error number.
◆ getString()
BString BError::getString | ( | ) | const |
Get error message.
◆ num()
int BError::num | ( | ) | const |
Get The error number.
◆ operator int()
| inline |
Return error number.
◆ set()
◆ setError()
◆ str()
const char * BError::str | ( | ) | const |
Return a char* string.
Member Data Documentation
◆ oerrNo
| private |
◆ oerrStr
| private |
The documentation for this class was generated from the following files:
- /src/cern/tms/tms/beam/libBeam/BError.h
- /src/cern/tms/tms/beam/libBeam/BError.cpp
Generated by 1.9.7