areaDetector  3-5-0
EPICS areaDetector framework
Public Types | Public Member Functions | Protected Attributes | List of all members
ccd_exception Class Reference

Class for storing errors from detector. More...

#include <ccd_exception.h>

Public Types

enum  error_code { ok, xfer_not_starting, not_implemented, unknown }
 

Public Member Functions

 ccd_exception (const char *mess)
 Constructor to spec error string. More...
 
 ccd_exception (error_code er, const char *mess)
 Constructor to spec. More...
 
 ccd_exception (error_code er)
 construcor for speced error code. More...
 
 ccd_exception ()
 Class for storing errors from detector. More...
 
char * err_mess (void)
 Return error message. More...
 
error_code getErrCode (void)
 return error code. More...
 

Protected Attributes

char err [256]
 
error_code code
 

Detailed Description

Class for storing errors from detector.

Originally written for ccd cameras, but works for anything...

Author
Tim Madden
Date
June 2003 Class ccd_exception

contains char* error passed as exception. not using std::string because it has questionable thread safety.

Member Enumeration Documentation

◆ error_code

Enumerator
ok 
xfer_not_starting 
not_implemented 
unknown 

Constructor & Destructor Documentation

◆ ccd_exception() [1/4]

ccd_exception::ccd_exception ( const char *  x)

Constructor to spec error string.

Parameters
messSome string to put into error message, like "camera error blah blah.."

◆ ccd_exception() [2/4]

ccd_exception::ccd_exception ( error_code  er,
const char *  mess 
)

Constructor to spec.

error string and code as int.

Parameters
erenum or int for error code. user picks it.
messSome string to put into error message, like "camera error blah blah.."

◆ ccd_exception() [3/4]

ccd_exception::ccd_exception ( error_code  er)

construcor for speced error code.

Parameters
erenum or int for error code. user picks it.

◆ ccd_exception() [4/4]

ccd_exception::ccd_exception ( )

Class for storing errors from detector.

Originally written for ccd cameras, but works for anything...

Author
Tim Madden
Date
June 2003Constructor. default, puts "error" as a message. code is enum unmknown.

Member Function Documentation

◆ err_mess()

char * ccd_exception::err_mess ( void  )

Return error message.

Returns
string in the error exception.

◆ getErrCode()

ccd_exception::error_code ccd_exception::getErrCode ( void  )

return error code.

Returns
int that is error code.

Member Data Documentation

◆ code

error_code ccd_exception::code
protected

◆ err

char ccd_exception::err[256]
protected

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