Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# TAO_Exceptions Class Reference

This class is a namespace for exception-related static data and methods. More...

`#include <Exception.h>`

Collaboration diagram for TAO_Exceptions:

[legend]
List of all members.

## Static Public Methods
void | make_standard_typecode (CORBA::TypeCode_ptr &tcp, const char *name, char *buf, size_t buflen, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ())
void | make_unknown_user_typecode (CORBA::TypeCode_ptr &tcp, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ())
| Make the TypeCode for the CORBA::UnknownUserException standard exception.
void | init (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ())
| Runtime initialization of all standard exception typecodes. Called from <CORBA::ORB_init>.
void | fini (void)
| Runtime finalization of all standard exception typecodes.
CORBA_SystemException* | create_system_exception ( const char *id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment () )
| Create a CORBA::SystemException given the interface repository ID.
## Static Public Attributes
ACE_Allocator* | global_allocator_
## Static Private Attributes
int | initialized_ = 0
| Flag that denotes that the TAO's CORBA exceptions have been initialized.

## Detailed Description

This class is a namespace for exception-related static data and methods.

## Member Function Documentation

CORBA_SystemException * TAO_Exceptions::create_system_exception ( | const char * id,
| CORBA_Environment & ACE_TRY_ENV = TAO_default_environment () )`[static]`

| Create a CORBA::SystemException given the interface repository ID.

void TAO_Exceptions::fini ( | void )`[static]`

| Runtime finalization of all standard exception typecodes.

void TAO_Exceptions::init ( | CORBA_Environment & ACE_TRY_ENV = TAO_default_environment () )`[static]`

| Runtime initialization of all standard exception typecodes. Called from <CORBA::ORB_init>.

void TAO_Exceptions::make_standard_typecode ( | CORBA::TypeCode_ptr & tcp,
| const char * name,
| char * buf,
| size_t buflen,
| CORBA_Environment & ACE_TRY_ENV = TAO_default_environment () )`[static]`

| Make the TypeCode for a standard exception. When used correctly, initializing system exceptions is only an exercise in CPU time; it allocates no new memory.

void TAO_Exceptions::make_unknown_user_typecode ( | CORBA::TypeCode_ptr & tcp,
| CORBA_Environment & ACE_TRY_ENV = TAO_default_environment () )`[static]`

| Make the TypeCode for the CORBA::UnknownUserException standard exception.

## Member Data Documentation

ACE_Allocator * TAO_Exceptions::global_allocator_`[inline, static]`

| This global allocator is used to initialize system exception typecodes. Since at the time, the ORB is mostly still not available. Using a separate allocator prevents CDR routines from accessing the optimized allocators from the ORB.

int TAO_Exceptions::initialized_ = 0`[static, private]`

| Flag that denotes that the TAO's CORBA exceptions have been initialized.

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

- Exception.h
- Exception.cpp