namespace Tango class Except

Container class for all exception related methods

Public

Exception related method
static void print_exception(const CORBA::Exception &ex)
Print a TANGO exception
Throw exception inline methods (static)
static inline void throw_exception(const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(const char *reason, const char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(const char *reason, char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(const char *reason, char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(char *reason, const char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(char *reason, char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(char *reason, char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(string &reason, string &desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(string &reason, string &desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(string &reason, const char *desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(string &reason, const char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(const char *reason, string &desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(const char *reason, string &desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(const char *reason, const char *desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(string &reason, string &desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(string &reason, char *desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(string &reason, char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(char *reason, string &desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(char *reason, string &desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
static inline void throw_exception(char *reason, char *desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
Generate and throw a TANGO DevFailed exception
Other throw exception methods
static void throw_exception(const CORBA::SystemException &ex, const char *origin)
Generate and throw a TANGO DevFailed exception
static void throw_exception(const CORBA::SystemException &ex, char *origin)
Generate and throw a TANGO DevFailed exception
static void throw_exception(const CORBA::SystemException &ex, string &origin)
Generate and throw a TANGO DevFailed exception

Documentation

Container class for all exception related methods. Most of these methods are static methods
Exception related method

static void print_exception(const CORBA::Exception &ex)
Print a TANGO exception. Print all the details of a TANGO exception.
Parameters:
ex - The exception object reference

Throw exception inline methods (static)

static inline void throw_exception(const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(const char *reason, const char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(const char *reason, char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(const char *reason, char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(char *reason, const char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(char *reason, char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(char *reason, char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(string &reason, string &desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(string &reason, string &desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(string &reason, const char *desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(string &reason, const char *desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(const char *reason, string &desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(const char *reason, string &desc, const char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(const char *reason, const char *desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(string &reason, string &desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(string &reason, char *desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(string &reason, char *desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(char *reason, string &desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(char *reason, string &desc, char *origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

static inline void throw_exception(char *reason, char *desc, string &origin, Tango::ErrSeverity sever = Tango::ERR)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field

Other throw exception methods

static void throw_exception(const CORBA::SystemException &ex, const char *origin)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
ex - A 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.
origin - The exception DevError object origin field

static void throw_exception(const CORBA::SystemException &ex, char *origin)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
ex - A 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.
origin - The exception DevError object origin field. The memory allocated for this parameter will be freed by this method.

static void throw_exception(const CORBA::SystemException &ex, string &origin)
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
Throws:
DevFailed The thrown exception. Click here to read DevFailed exception specification
Parameters:
ex - A 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.
origin - The exception DevError object origin field. The memory allocated for this parameter will be freed by this method.


This class has no child classes.
Author:
$Author: taurel $
Version:
$Revision: 1.3 $

alphabetic index hierarchy of classes


generated by doc++