TAO 3.1.4
Loading...
Searching...
No Matches
SystemException.cpp File Reference
#include "tao/SystemException.h"
#include "tao/ORB_Constants.h"
#include "tao/CORBA_String.h"
#include "tao/CDR.h"
#include "tao/debug.h"
#include "tao/AnyTypeCode_Adapter.h"
#include "ace/Malloc.h"
#include "ace/SString.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Dynamic_Service.h"
#include "ace/streams.h"

@c errno Encoding

The errno encoding is located in the bottom 7 bits.

#define STANDARD_EXCEPTION_LIST
 
#define TAO_SYSTEM_EXCEPTION(name)    (char *) "IDL:omg.org/CORBA/" #name ":1.0",
 
#define TAO_SYSTEM_EXCEPTION(name)    &CORBA::name::_tao_create,
 
#define TAO_SYSTEM_EXCEPTION(name)
 
#define TAO_SYSTEM_EXCEPTION(name)
 
#define TAO_SYSTEM_EXCEPTION(name)
 
#define TAO_SYSTEM_EXCEPTION(name)
 
#define TAO_SYSTEM_EXCEPTION(name)
 
const CORBA::ULong TAO_UNSPECIFIED_MINOR_CODE = 0x0U
 
const CORBA::ULong TAO_ETIMEDOUT_MINOR_CODE = 0x1U
 
const CORBA::ULong TAO_ENFILE_MINOR_CODE = 0x2U
 
const CORBA::ULong TAO_EMFILE_MINOR_CODE = 0x3U
 
const CORBA::ULong TAO_EPIPE_MINOR_CODE = 0x4U
 
const CORBA::ULong TAO_ECONNREFUSED_MINOR_CODE = 0x5U
 
const CORBA::ULong TAO_ENOENT_MINOR_CODE = 0x6U
 
const CORBA::ULong TAO_EBADF_MINOR_CODE = 0x7U
 
const CORBA::ULong TAO_ENOSYS_MINOR_CODE = 0x8U
 
const CORBA::ULong TAO_EPERM_MINOR_CODE = 0x9U
 
const CORBA::ULong TAO_EAFNOSUPPORT_MINOR_CODE = 0xAU
 
const CORBA::ULong TAO_EAGAIN_MINOR_CODE = 0xBU
 
const CORBA::ULong TAO_ENOMEM_MINOR_CODE = 0xCU
 
const CORBA::ULong TAO_EACCES_MINOR_CODE = 0xDU
 
const CORBA::ULong TAO_EFAULT_MINOR_CODE = 0xEU
 
const CORBA::ULong TAO_EBUSY_MINOR_CODE = 0xFU
 
const CORBA::ULong TAO_EEXIST_MINOR_CODE = 0x10U
 
const CORBA::ULong TAO_EINVAL_MINOR_CODE = 0x11U
 
const CORBA::ULong TAO_ECOMM_MINOR_CODE = 0x12U
 
const CORBA::ULong TAO_ECONNRESET_MINOR_CODE = 0x13U
 
const CORBA::ULong TAO_ENOTSUP_MINOR_CODE = 0x14U
 
static const char * repo_id_array []
 
static const CORBA::ULong array_sz
 
TAO::excp_factory excp_array []
 

Macro Definition Documentation

◆ STANDARD_EXCEPTION_LIST

#define STANDARD_EXCEPTION_LIST

◆ TAO_SYSTEM_EXCEPTION [1/7]

#define TAO_SYSTEM_EXCEPTION ( name)     (char *) "IDL:omg.org/CORBA/" #name ":1.0",

◆ TAO_SYSTEM_EXCEPTION [2/7]

#define TAO_SYSTEM_EXCEPTION ( name)     &CORBA::name::_tao_create,

◆ TAO_SYSTEM_EXCEPTION [3/7]

#define TAO_SYSTEM_EXCEPTION ( name)
Value:
CORBA::name ::name () \
: CORBA::SystemException ("IDL:omg.org/CORBA/" #name ":1.0", \
#name, \
0, \
{ \
} \
\
CORBA::name ::name (CORBA::ULong code, CORBA::CompletionStatus completed) \
: CORBA::SystemException ("IDL:omg.org/CORBA/" #name ":1.0", \
#name, \
code, \
completed) \
{ \
}
ACE_CDR::ULong ULong
Definition Basic_Types.h:55
CompletionStatus
Completion status for CORBA system exceptions.
Definition SystemException.h:66
@ COMPLETED_NO
Didn't change any state; retry is OK.
Definition SystemException.h:68
SystemException.
Definition SystemException.h:81

◆ TAO_SYSTEM_EXCEPTION [4/7]

#define TAO_SYSTEM_EXCEPTION ( name)
Value:
CORBA::TypeCode_ptr \
CORBA::name ::_tao_type () const \
{ \
ACE_Dynamic_Service<TAO_AnyTypeCode_Adapter>::instance ( \
"AnyTypeCode_Adapter"); \
if (adapter != nullptr) \
return adapter->_tao_type_ ## name (); \
else \
{ \
TAOLIB_ERROR ((LM_ERROR, \
ACE_TEXT ("(%P|%t) %p\n"), \
ACE_TEXT ("Unable to find the ") \
ACE_TEXT ("AnyTypeCode Adapter instance"))); \
return 0; \
} \
}
Definition AnyTypeCode_Adapter.h:63

◆ TAO_SYSTEM_EXCEPTION [5/7]

#define TAO_SYSTEM_EXCEPTION ( name)
Value:
void \
CORBA::name ::_raise () const \
{ \
throw *this; \
}

◆ TAO_SYSTEM_EXCEPTION [6/7]

#define TAO_SYSTEM_EXCEPTION ( name)
Value:
CORBA::name ::_tao_duplicate () const \
{ \
CORBA::Exception * result = 0; \
ACE_NEW_RETURN (result, CORBA::name (*this), 0); \
return result; \
}
Exception.
Definition Exception.h:98

◆ TAO_SYSTEM_EXCEPTION [7/7]

#define TAO_SYSTEM_EXCEPTION ( name)
Value:
CORBA::name ::_tao_create () \
{ \
CORBA::name *result = 0; \
ACE_NEW_RETURN (result, CORBA::name (), 0); \
return result; \
}

Variable Documentation

◆ array_sz

const CORBA::ULong array_sz
static
Initial value:
=
(sizeof (repo_id_array) / sizeof (char const *)) - 1
static const char * repo_id_array[]
Definition SystemException.cpp:883

◆ excp_array

TAO::excp_factory excp_array[]
Initial value:
= {
#define TAO_SYSTEM_EXCEPTION(name) \
nullptr
}
#define STANDARD_EXCEPTION_LIST
Definition SystemException.cpp:841

◆ repo_id_array

const char* repo_id_array[]
static
Initial value:
= {
#define TAO_SYSTEM_EXCEPTION(name) \
nullptr
}

◆ TAO_EACCES_MINOR_CODE

const CORBA::ULong TAO_EACCES_MINOR_CODE = 0xDU

◆ TAO_EAFNOSUPPORT_MINOR_CODE

const CORBA::ULong TAO_EAFNOSUPPORT_MINOR_CODE = 0xAU

◆ TAO_EAGAIN_MINOR_CODE

const CORBA::ULong TAO_EAGAIN_MINOR_CODE = 0xBU

◆ TAO_EBADF_MINOR_CODE

const CORBA::ULong TAO_EBADF_MINOR_CODE = 0x7U

◆ TAO_EBUSY_MINOR_CODE

const CORBA::ULong TAO_EBUSY_MINOR_CODE = 0xFU

◆ TAO_ECOMM_MINOR_CODE

const CORBA::ULong TAO_ECOMM_MINOR_CODE = 0x12U

◆ TAO_ECONNREFUSED_MINOR_CODE

const CORBA::ULong TAO_ECONNREFUSED_MINOR_CODE = 0x5U

◆ TAO_ECONNRESET_MINOR_CODE

const CORBA::ULong TAO_ECONNRESET_MINOR_CODE = 0x13U

◆ TAO_EEXIST_MINOR_CODE

const CORBA::ULong TAO_EEXIST_MINOR_CODE = 0x10U

◆ TAO_EFAULT_MINOR_CODE

const CORBA::ULong TAO_EFAULT_MINOR_CODE = 0xEU

◆ TAO_EINVAL_MINOR_CODE

const CORBA::ULong TAO_EINVAL_MINOR_CODE = 0x11U

◆ TAO_EMFILE_MINOR_CODE

const CORBA::ULong TAO_EMFILE_MINOR_CODE = 0x3U

◆ TAO_ENFILE_MINOR_CODE

const CORBA::ULong TAO_ENFILE_MINOR_CODE = 0x2U

◆ TAO_ENOENT_MINOR_CODE

const CORBA::ULong TAO_ENOENT_MINOR_CODE = 0x6U

◆ TAO_ENOMEM_MINOR_CODE

const CORBA::ULong TAO_ENOMEM_MINOR_CODE = 0xCU

◆ TAO_ENOSYS_MINOR_CODE

const CORBA::ULong TAO_ENOSYS_MINOR_CODE = 0x8U

◆ TAO_ENOTSUP_MINOR_CODE

const CORBA::ULong TAO_ENOTSUP_MINOR_CODE = 0x14U

◆ TAO_EPERM_MINOR_CODE

const CORBA::ULong TAO_EPERM_MINOR_CODE = 0x9U

◆ TAO_EPIPE_MINOR_CODE

const CORBA::ULong TAO_EPIPE_MINOR_CODE = 0x4U

◆ TAO_ETIMEDOUT_MINOR_CODE

const CORBA::ULong TAO_ETIMEDOUT_MINOR_CODE = 0x1U

◆ TAO_UNSPECIFIED_MINOR_CODE

const CORBA::ULong TAO_UNSPECIFIED_MINOR_CODE = 0x0U