#include <logging.h>
#include <Thread_Manager.h>
#include <sstream>
#include <acserrS.h>
#include <acscommonC.h>
#include <exception>
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:
- ACS_ERROR() - to create "no error objet" without runtime and source info.
- ACS_ERROR(ro) = ACS_NO_ERROR(ro) - to create "no error object"
- ACS_ERROR(et, ec, ro) = ACS_ERROR_BEGIN(et, ec, ro) - to create error object (init error stack)
- ACS_ERROR(et, ec, ro, se) - to create error object (init error stack) with erro severity
- ACS_ERROR(pe, et, ec, ro) - to create new error object adding previous one (making stack)
- ACS_ERROR(pe, et, ec, ro, se) - to create new error object adding previous one (making stack) with error severity
- 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:
- ACS_EXCEPTION(eo)
- ACS_EXCEPTION(et, ec, ro)
- ACS_EXCEPTION(et, ec, ro, se)
- ACS_EXCEPTION(pex, et, ec, ro)
- ACS_EXCEPTION(pex, et, ec, ro, se)
- 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 |
#define RETHROW_ACS_EXCEPTION |
( |
|
arg... |
) |
ACE_TRY_THROW ( ACS_EXCEPTION(arg) ) |
Macro that helps retrowing ACSException It can be used as:
- RETHROW_ACS_EXCEPTION(lab ,eo)
- RETHROW_ACS_EXCEPTION(lab, et, ec, ro)
- RETHROW_ACS_EXCEPTION(lab, et, ec, ro, se)
- RETHROW_ACS_EXCEPTION(lab, pex, et, ec, ro)
- RETHROW_ACS_EXCEPTION(lab, pex, et, ec, ro, se)
- Parameters:
-
#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:
- RETHROW_ACS_EXCEPTION_EX(lab ,eo)
- RETHROW_ACS_EXCEPTION_EX(lab, et, ec, ro)
- RETHROW_ACS_EXCEPTION_EX(lab, et, ec, ro, se)
- RETHROW_ACS_EXCEPTION_EX(lab, pex, et, ec, ro)
- RETHROW_ACS_EXCEPTION_EX(lab, pex, et, ec, ro, se)
- Parameters:
-
#define THROW_ACS_EXCEPTION |
( |
|
arg... |
) |
ACE_THROW ( ACS_EXCEPTION(arg) ) |
Macro helps throwing ACSException It can be used as:
- THROW_ACS_EXCEPTION(eo)
- THROW_ACS_EXCEPTION(et, ec, ro)
- THROW_ACS_EXCEPTION(et, ec, ro, se)
- THROW_ACS_EXCEPTION(pex, et, ec, ro)
- THROW_ACS_EXCEPTION(pex, et, ec, ro, se)
- 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:
- THROW_ACS_EXCEPTION_EX(lab ,eo)
- THROW_ACS_EXCEPTION_EX(lab, et, ec, ro)
- THROW_ACS_EXCEPTION_EX(lab, et, ec, ro, se)
- THROW_ACS_EXCEPTION_EX(lab, pex, et, ec, ro)
- THROW_ACS_EXCEPTION_EX(lab, pex, et, ec, ro, se)
- Parameters:
-