Classes | Namespaces | Defines | Variables

acserrLegacy.h File Reference

#include <logging.h>
#include <Thread_Manager.h>
#include <sstream>
#include <acserrS.h>
#include <acscommonC.h>
#include <exception>
Include dependency graph for acserrLegacy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ACSError

Namespaces

namespace  ACSErr

Defines

#define DEFAULT_SEVERITY   ACSErr::Error
#define ACS_ERROR_BEGIN(et, ec, ro)   ACSError(__FILE__, __LINE__, et, ec, ro)
#define ACS_ERROR(arg...)   ACSError(__FILE__, __LINE__ ,## arg)
#define ACS_NO_ERROR(ro)   ACSError(__FILE__, __LINE__, ro)
#define ACS_EXCEPTION(arg...)   ACSErr::ACSException( ACSError::createErrorTrace(__FILE__, __LINE__, arg) )
#define THROW_ACS_EXCEPTION(arg...)   ACE_THROW ( ACS_EXCEPTION(arg) )
#define THROW_ACS_EXCEPTION_EX(lab, arg...)   ACE_THROW_EX ( ACS_EXCEPTION(arg), lab )
#define RETHROW_ACS_EXCEPTION(arg...)   ACE_TRY_THROW ( ACS_EXCEPTION(arg) )
#define RETHROW_ACS_EXCEPTION_EX(lab, arg...)   ACE_TRY_THROW_EX ( ACS_EXCEPTION(arg), lab )

Variables

const ErrorCode ACSErr::ACSErrOK = ACSErrOK

Define Documentation

#define ACS_ERROR (   arg...  )     ACSError(__FILE__, __LINE__ ,## arg)

Macro helps to create ACSError object It can be used as:

Parameters:
pe - previous error object (can be ACSError, ACSErr::ACSException or ACSErr::ErrorTrace)
et - error type - group (ACSErr::ACSErrType)
ec - error code (ACSErr::ErrorCode)
ro - routine info (string)
se - error severity (ACSErr::Severity)
#define ACS_ERROR_BEGIN (   et,
  ec,
  ro 
)    ACSError(__FILE__, __LINE__, et, ec, ro)

Macro helps to create local initial error object (stack) - ACSError object

Warning:
Depricated !!! Use ACS_ERROR(et, ec, ro) instead.
Parameters:
et - error type - group (ACSErr::ACSErrType)
ec - error code (ACSErr::ErrorCode)
ro - routine info (string)
#define ACS_EXCEPTION (   arg...  )     ACSErr::ACSException( ACSError::createErrorTrace(__FILE__, __LINE__, arg) )

Macro helps creating ACSException objext from ACSError object. It can be used as:

Parameters:
pex - previous exception (ACSErr::ACSException)
eo - error object (ACSError)
et - error type - group (ACSErr::ACSErrType)
ec - error code (ACSErr::ErrorCode)
ro - routine info (string)
se - error severity (ACSErr::Severity)
#define ACS_NO_ERROR (   ro  )     ACSError(__FILE__, __LINE__, ro)

Macro helps creating no error object.

Warning:
Depricated !!! Use ACS_ERROR(ro) instead.
Parameters:
ro - routin info (string)
#define DEFAULT_SEVERITY   ACSErr::Error

Default error severity.

#define RETHROW_ACS_EXCEPTION (   arg...  )     ACE_TRY_THROW ( ACS_EXCEPTION(arg) )

Macro that helps retrowing ACSException It can be used as:

Parameters:
pex - previous exception (ACSException)
pex - previous exception (ACSErr::ACSException)
eo - error object (ACSError)
et - error type - group (ACSErr::ACSErrType)
ec - error code (ACSErr::ErrorCode)
ro - routine info (string)
se - error severity (ACSErr::Severity)
lab - ACE_TRY_EX label (see: http://www.cs.wustl.edu/~schmidt/ACE_wrappers/docs/exceptions.html)
#define RETHROW_ACS_EXCEPTION_EX (   lab,
  arg... 
)    ACE_TRY_THROW_EX ( ACS_EXCEPTION(arg), lab )

Macro that helps retrowing ACSException It can be used as:

Parameters:
pex - previous exception (ACSErr::ACSException)
eo - error object (ACSError)
et - error type - group (ACSErr::ACSErrType)
ec - error code (ACSErr::ErrorCode)
ro - routine info (string)
se - error severity (ACSErr::Severity)
lab - ACE_TRY_EX label (see: http://www.cs.wustl.edu/~schmidt/ACE_wrappers/docs/exceptions.html)
#define THROW_ACS_EXCEPTION (   arg...  )     ACE_THROW ( ACS_EXCEPTION(arg) )

Macro helps throwing ACSException It can be used as:

Parameters:
pex - previous exception (ACSErr::ACSException)
eo - error object (ACSError)
et - error type - group (ACSErr::ACSErrType)
ec - error code (ACSErr::ErrorCode)
ro - routine info (string)
se - error severity (ACSErr::Severity)
#define THROW_ACS_EXCEPTION_EX (   lab,
  arg... 
)    ACE_THROW_EX ( ACS_EXCEPTION(arg), lab )

Macro helps throwing ACSException It can be used as:

Parameters:
pex - previous exception (ACSErr::ACSException)
eo - error object (ACSError)
et - error type - group (ACSErr::ACSErrType)
ec - error code (ACSErr::ErrorCode)
ro - routine info (string)
se - error severity (ACSErr::Severity)
lab - ACE_TRY_EX label (see: http://www.cs.wustl.edu/~schmidt/ACE_wrappers/docs/exceptions.html)