Belle II Software  release-08-01-10
ErrCode Class Reference

abstract errorocode be aware that the default is success More...

#include <ErrCode.h>

Public Types

enum  Status {
  success = 0 ,
  pocafailure = 1 ,
  baddistance = 2 ,
  inversionerror = 4 ,
  badsetup = 8 ,
  divergingconstraint = 16 ,
  slowdivergingfit = 32 ,
  fastdivergingfit = 64 ,
  filtererror = 128 ,
  photondimerror = 256 ,
  klongdimerror = 512
}
 some enums to store errors
 

Public Member Functions

 ErrCode ()
 default constructor
 
 ErrCode (Status flag)
 constructor
 
const ErrCodeoperator|= (const ErrCode &rhs)
 operator
 
bool operator== (const ErrCode &rhs) const
 operator
 
bool operator== (const ErrCode::Status &rhs) const
 operator
 
void reset ()
 reset the errorcode to default (success!)
 
bool failure () const
 returns true if errorcode is error
 
unsigned int flag () const
 get errorcode
 

Private Attributes

unsigned int m_flag
 storing the errorcode
 

Detailed Description

abstract errorocode be aware that the default is success

Definition at line 14 of file ErrCode.h.


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