Tango Core Classes Reference  9.3.3
Tango::Except Class Reference

Container class for all exception related methods. More...

#include "tango.h"

Static Public Member Functions

Exception related method
static void print_exception (const CORBA::Exception &ex)
 Print a TANGO exception. More...
 
Error stack related method
static void print_error_stack (const Tango::DevErrorList &ex)
 Print a TANGO error stack. More...
 
Throw exception inline methods (static)
static TANGO_NORETURN void throw_exception (const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const char *reason, const char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const char *reason, char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const char *reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (char *reason, const char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (char *reason, char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (char *reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const string &reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const string &reason, const string &desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const string &reason, const char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const string &reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const char *reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const char *reason, const string &desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const char *reason, const char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const string &reason, const string &desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const string &reason, char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const string &reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (char *reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (char *reason, const string &desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (char *reason, char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Generate and throw a TANGO DevFailed exception. More...
 
Re-throw exception inline methods (static)
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const char *reason, const char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const char *reason, char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const char *reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, char *reason, const char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, char *reason, char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, char *reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const string &reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const string &reason, const string &desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const string &reason, const char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const string &reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const char *reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const char *reason, const string &desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const char *reason, const char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const string &reason, const string &desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const string &reason, char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, const string &reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, char *reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, char *reason, const string &desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
static TANGO_NORETURN void re_throw_exception (Tango::DevFailed &ex, char *reason, char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
 Re-throw a TANGO DevFailed exception with one more error. More...
 
Other throw exception methods
static TANGO_NORETURN void throw_exception (const CORBA::SystemException &ex, const char *origin)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const CORBA::SystemException &ex, char *origin)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_exception (const CORBA::SystemException &ex, const string &origin)
 Generate and throw a TANGO DevFailed exception. More...
 
static TANGO_NORETURN void throw_named_exception (const char *att_name, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Throw a TANGO MultiDevFailed exception. More...
 
static TANGO_NORETURN void throw_named_exception (vector< string > &atts, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Throw a TANGO MultiDevFailed exception. More...
 
static TANGO_NORETURN void throw_named_exception (Tango::DeviceImpl *d, long att_idx, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Throw a TANGO MultiDevFailed exception. More...
 
static TANGO_NORETURN void throw_named_exception (Tango::DeviceImpl *d, vector< long > &atts, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
 Throw a TANGO MultiDevFailed exception. More...
 
static bool compare_exception (Tango::DevFailed &ex1, Tango::DevFailed &ex2)
 Compare two Tango DevFailed exceptions for equality. More...
 

Detailed Description

Container class for all exception related methods.

Most of these methods are static methods

Author
bourtemb
Revision
30238

Member Function Documentation

◆ compare_exception()

static bool Tango::Except::compare_exception ( Tango::DevFailed &  ex1,
Tango::DevFailed &  ex2 
)
static

Compare two Tango DevFailed exceptions for equality.

The two DevFailed exceptions are verified by comparing the reason, origin, description and severity of all exceptions in the error stack. The strings reason, origin and description are compared literally. Click here to read DevFailed exception specification

Parameters
ex1The first DevFailed exception
ex2The second DevFailed exception
Returns
A boolean set to true if the two exceptions are equal

◆ print_error_stack()

static void Tango::Except::print_error_stack ( const Tango::DevErrorList &  ex)
static

Print a TANGO error stack.

Print all the details of a TANGO error stack.

Parameters
exThe error stack reference

◆ print_exception()

static void Tango::Except::print_exception ( const CORBA::Exception &  ex)
static

Print a TANGO exception.

Print all the details of a TANGO exception.

Parameters
exThe exception object reference

◆ re_throw_exception() [1/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
char *  reason,
char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the origin, reason and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [2/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
char *  reason,
char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the reason and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [3/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
char *  reason,
char *  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the reason and desc parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [4/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
char *  reason,
const char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the reason and origin parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [5/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
char *  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the reason parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [6/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
char *  reason,
const string &  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the reason and origin parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [7/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
char *  reason,
const string &  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the reason parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [8/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const char *  reason,
char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the origin and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [9/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const char *  reason,
char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the desc parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [10/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const char *  reason,
const char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the origin parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [11/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const char *  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [12/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const char *  reason,
const char *  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [13/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const char *  reason,
const string &  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [14/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const char *  reason,
const string &  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [15/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const string &  reason,
char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the origin and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [16/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const string &  reason,
char *  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the desc parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [17/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const string &  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [18/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const string &  reason,
const char *  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [19/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const string &  reason,
const string &  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. The memory used by the origin parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [20/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const string &  reason,
const string &  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ re_throw_exception() [21/21]

static TANGO_NORETURN void Tango::Except::re_throw_exception ( Tango::DevFailed &  ex,
const string &  reason,
const string &  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Re-throw a TANGO DevFailed exception with one more error.

The exception is re-thrown with one more DevError object. A default value "Tango::ERR" is defined for the new DevError severity field. Click here to read DevFailed exception specification

Parameters
exThe DevFailed exception
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [1/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( char *  reason,
char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the origin, reason and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [2/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( char *  reason,
char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the reason and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [3/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( char *  reason,
char *  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the reason and desc parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [4/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( char *  reason,
const char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the reason and origin parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [5/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( char *  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the reason parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [6/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( char *  reason,
const string &  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the reason and origin parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [7/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( char *  reason,
const string &  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the reason parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [8/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const char *  reason,
char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the origin and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [9/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const char *  reason,
char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the desc parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [10/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const char *  reason,
const char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the origin parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [11/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const char *  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

Referenced by Tango::DeviceImpl::get_db_device(), Tango::AttrProp< DevLong >::get_val(), and Tango::DoubleAttrProp< DevDouble >::get_val().

◆ throw_exception() [12/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const char *  reason,
const char *  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [13/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const char *  reason,
const string &  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [14/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const char *  reason,
const string &  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [15/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const CORBA::SystemException &  ex,
char *  origin 
)
static

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
exA CORBA System Exception. The reason and desc fields of the DevError object will be set according to the data in this exception. The desc field is always set to API_CorbaSysException and the reason flag is different depending on the exact type of the CORBA system exception.
originThe exception DevError object origin field. The memory allocated for this parameter will be freed by this method.
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [16/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const CORBA::SystemException &  ex,
const char *  origin 
)
static

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
exA CORBA System Exception. The reason and desc fields of the DevError object will be set according to the data in this exception. The desc field is always set to API_CorbaSysException and the reason flag is different depending on the exact type of the CORBA system exception.
originThe exception DevError object origin field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [17/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const CORBA::SystemException &  ex,
const string &  origin 
)
static

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
exA CORBA System Exception. The reason and desc fields of the DevError object will be set according to the data in this exception. The desc field is always set to API_CorbaSysException and the reason flag is different depending on the exact type of the CORBA system exception.
originThe exception DevError object origin field. The memory allocated for this parameter will be freed by this method.
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [18/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const string &  reason,
char *  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the origin and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [19/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const string &  reason,
char *  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the desc parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [20/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const string &  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [21/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const string &  reason,
const char *  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [22/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const string &  reason,
const string &  desc,
char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. The memory used by the origin parameter will be freed by this method Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [23/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const string &  reason,
const string &  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_exception() [24/24]

static TANGO_NORETURN void Tango::Except::throw_exception ( const string &  reason,
const string &  desc,
const string &  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Generate and throw a TANGO DevFailed exception.

The exception is created with a single DevError object. A default value "Tango::ERR" is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
DevFailedThe thrown exception. Click here to read DevFailed exception specification

◆ throw_named_exception() [1/4]

static TANGO_NORETURN void Tango::Except::throw_named_exception ( const char *  att_name,
const char *  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Throw a TANGO MultiDevFailed exception.

Throw a MultiDevFailed exception with one more DevError object for the attribute with name given as first parameter. A default value "Tango::ERR" is defined for the new DevError severity field. Note that throwing MultiDevFailed exception is allowed only in attribute writing methods. The memory used by the origin and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
att_nameThe attribute name
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
MultiDevFailedThe thrown exception. Click here to read MultiDevFailed exception specification

◆ throw_named_exception() [2/4]

static TANGO_NORETURN void Tango::Except::throw_named_exception ( Tango::DeviceImpl d,
long  att_idx,
const char *  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
static

Throw a TANGO MultiDevFailed exception.

Throw a MultiDevFailed exception with one more DevError object for one attribute with index given as second parameter. The attributes index is the index received by the write_attr_hardware() method. A default value "Tango::ERR" is defined for the new DevError severity field. Note that throwing MultiDevFailed exception is allowed only in attribute writing methods.

The memory used by the origin and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
dThe device pointer
att_idxThe attributes index
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
MultiDevFailedThe thrown exception. Click here to read MultiDevFailed exception specification

◆ throw_named_exception() [3/4]

static TANGO_NORETURN void Tango::Except::throw_named_exception ( Tango::DeviceImpl d,
vector< long > &  atts,
const char *  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
static

Throw a TANGO MultiDevFailed exception.

Throw a MultiDevFailed exception with one more DevError object for the attribute list with indexes given as second parameter. The attributes indexes are the index received by the write_attr_hardware() method. A default value "Tango::ERR" is defined for the new DevError severity field. Note that throwing MultiDevFailed exception is allowed only in attribute writing methods.

The memory used by the origin and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
dThe device pointer
attsThe attributes indexes vector
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
MultiDevFailedThe thrown exception. Click here to read MultiDevFailed exception specification

◆ throw_named_exception() [4/4]

static TANGO_NORETURN void Tango::Except::throw_named_exception ( vector< string > &  atts,
const char *  reason,
const char *  desc,
const char *  origin,
Tango::ErrSeverity  sever = Tango::ERR 
)
inlinestatic

Throw a TANGO MultiDevFailed exception.

Throw a MultiDevFailed exception with one more DevError object for the attribute list with names given as first parameter. A default value "Tango::ERR" is defined for the new DevError severity field. Note that throwing MultiDevFailed exception is allowed only in attribute writing methods. The memory used by the origin and desc parameters will be freed by this method Click here to read DevFailed exception specification

Parameters
attsThe attributes name vector
reasonThe exception DevError object reason field
descThe exception DevError object desc field
originThe exception DevError object origin field
severThe exception DevError object severity field
Exceptions
MultiDevFailedThe thrown exception. Click here to read MultiDevFailed exception specification

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