Cern
LibTmsApi 2.3.0

Error return class. More...

#include <BError.h>

Inheritance diagram for BError:
BEvent1Error

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.
 
BErrorset (int errNo, BString errStr="")
 Set error number and message.
 
BErrorclear ()
 Clear the error.
 
BErrorsetError (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::BError ( int  errNo = ErrorOk,
BString  errStr = "" 
)

Create object.

◆ 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()

BError::operator int ( ) const
inline

Return error number.

◆ set()

BError & BError::set ( int  errNo,
BString  errStr = "" 
)

Set error number and message.

◆ setError()

BError & BError::setError ( BString  errStr = "")

Set error type ERROR with optional message.

◆ str()

const char * BError::str ( ) const

Return a char* string.

Member Data Documentation

◆ oerrNo

int BError::oerrNo
private

◆ oerrStr

BString BError::oerrStr
private

The documentation for this class was generated from the following files: