BError Class Reference

Error return class. More...

#include <BError.h>

Inheritance diagram for BError:

BEventError List of all members.

Public Types

 NONE = 0
 ERROR = 1
enum  Type { NONE = 0, ERROR = 1 }

Public Member Functions

 BError (int errNo=NONE, 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 getErrorNo () const
 Get The error number.
 operator int () const
 Return error number.

Private Attributes

int oerrNo
BString oerrStr

Detailed Description

Error return class.


Member Enumeration Documentation

enum BError::Type

Enumerator:
NONE 
ERROR 


Constructor & Destructor Documentation

BError::BError ( int  errNo = NONE,
BString  errStr = "" 
)

Create object.

BError::BError ( BString  errStr  ) 

Create with error set and error string.


Member Function Documentation

BError & BError::clear (  ) 

Clear the error.

BError BError::copy (  ) 

Return an independant copy.

int BError::getErrorNo (  )  const

Get The error number.

BString BError::getString (  )  const

Get error message.

BError::operator int (  )  const

Return error number.

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

Set error number and message.

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

Set error type ERROR with optional message.


Member Data Documentation

int BError::oerrNo [private]

BString BError::oerrStr [private]


The documentation for this class was generated from the following files:
Generated on Tue May 11 14:42:11 2010 for LibBeamApi by  doxygen 1.4.7