TAO 3.1.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CORBA::SystemException Class Referenceabstract

SystemException. More...

#include <SystemException.h>

Inheritance diagram for CORBA::SystemException:
Inheritance graph
[legend]
Collaboration diagram for CORBA::SystemException:
Collaboration graph
[legend]

Public Member Functions

virtual ~SystemException ()=default
 Destructor.
 
ULong minor () const
 Get the minor status.
 
void minor (ULong m)
 Set the minor status.
 
CORBA::CompletionStatus completed () const
 Get the completion status.
 
void completed (CORBA::CompletionStatus c)
 Set the operation completion status.
 
virtual void _raise () const =0
 
- Public Member Functions inherited from CORBA::Exception
 Exception (const Exception &src)
 Copy constructor.
 
virtual ~Exception ()=default
 Destructor.
 
virtual const char * _rep_id () const
 Return the repository ID of the Exception.
 
virtual const char * _name () const
 Return the name of the Exception.
 
virtual CORBA::TypeCode_ptr _tao_type () const =0
 Will be overridden in the concrete derived classes.
 
void _tao_print_exception (const char *info, FILE *f=stdout) const
 Print the exception to output determined by f.
 

Static Public Member Functions

static SystemException_downcast (CORBA::Exception *exception)
 Narrow to a SystemException.
 
static const SystemException_downcast (const CORBA::Exception *exception)
 The const version of narrow operation to a SystemException.
 
- Static Public Member Functions inherited from CORBA::Exception
static Exception_downcast (Exception *x)
 
static Exception const * _downcast (Exception const *x)
 
static void _tao_any_destructor (void *)
 Used in the non-copying Any insertion operator.
 

Private Attributes

CORBA::ULong minor_
 Minor code.
 
CORBA::CompletionStatus completed_
 Completion status.
 

@c errno Encoding

The errno encoding is located in the bottom 7 bits.

 SystemException (const SystemException &src)
 Copy constructor.
 
void _tao_print_system_exception (FILE *f=stdout) const
 
virtual ACE_CString _info () const
 
virtual void _tao_encode (TAO_OutputCDR &cdr) const
 Copy constructor.
 
virtual void _tao_decode (TAO_InputCDR &cdr)
 Copy constructor.
 
virtual CORBA::Exception_tao_duplicate () const
 Deep copy.
 
static CORBA::ULong _tao_minor_code (u_int location, int errno_value)
 Helper to create a minor status value.
 
static CORBA::ULong _tao_errno (int errno_value)
 
 SystemException ()
 Default constructor.
 
SystemExceptionoperator= (const SystemException &src)
 Assignment operator.
 
 SystemException (CORBA::ULong code, CORBA::CompletionStatus completed)
 Constructor using a repository id.
 
 SystemException (const char *repository_id, const char *local_name, CORBA::ULong code, CORBA::CompletionStatus completed)
 Constructor using a repository id.
 
static const char * _tao_get_omg_exception_description (const CORBA::SystemException &exc, CORBA::ULong minor_code)
 

Additional Inherited Members

- Protected Member Functions inherited from CORBA::Exception
 Exception ()=default
 Default constructor.
 
Exceptionoperator= (const Exception &src)
 Assignment operator.
 
 Exception (const char *repository_id, const char *local_name)
 Construct from a repository id.
 

Detailed Description

SystemException.

System exceptions are those defined in the CORBA specification; OMG-IDL defines these.

Constructor & Destructor Documentation

◆ SystemException() [1/4]

CORBA::SystemException::SystemException ( const SystemException & src)

Copy constructor.

Note
This constructor should be protected, but VC7.1 at warning level 4 complains about the inaccessible copy constructor preventing it from being caught. However, that probably isn't true for most cases since CORBA exceptions are typically caught by reference, not by copy.

◆ ~SystemException()

virtual CORBA::SystemException::~SystemException ( )
virtualdefault

Destructor.

◆ SystemException() [2/4]

CORBA::SystemException::SystemException ( )
protected

Default constructor.

◆ SystemException() [3/4]

CORBA::SystemException::SystemException ( CORBA::ULong code,
CORBA::CompletionStatus completed )
protected

Constructor using a repository id.

◆ SystemException() [4/4]

CORBA::SystemException::SystemException ( const char * repository_id,
const char * local_name,
CORBA::ULong code,
CORBA::CompletionStatus completed )
protected

Constructor using a repository id.

Member Function Documentation

◆ _downcast() [1/2]

const CORBA::SystemException * CORBA::SystemException::_downcast ( const CORBA::Exception * exception)
static

The const version of narrow operation to a SystemException.

◆ _downcast() [2/2]

CORBA::SystemException * CORBA::SystemException::_downcast ( CORBA::Exception * exception)
static

Narrow to a SystemException.

◆ _info()

ACE_CString CORBA::SystemException::_info ( ) const
virtual

Returns a string containing information about the exception. This function is not CORBA compliant.

Implements CORBA::Exception.

◆ _raise()

virtual void CORBA::SystemException::_raise ( ) const
pure virtual

Implements CORBA::Exception.

◆ _tao_decode()

void CORBA::SystemException::_tao_decode ( TAO_InputCDR & cdr)
virtual

Copy constructor.

Note
This constructor should be protected, but VC7.1 at warning level 4 complains about the inaccessible copy constructor preventing it from being caught. However, that probably isn't true for most cases since CORBA exceptions are typically caught by reference, not by copy.

Implements CORBA::Exception.

◆ _tao_duplicate()

CORBA::Exception * CORBA::SystemException::_tao_duplicate ( ) const
virtual

Deep copy.

Implements CORBA::Exception.

◆ _tao_encode()

void CORBA::SystemException::_tao_encode ( TAO_OutputCDR & cdr) const
virtual

Copy constructor.

Note
This constructor should be protected, but VC7.1 at warning level 4 complains about the inaccessible copy constructor preventing it from being caught. However, that probably isn't true for most cases since CORBA exceptions are typically caught by reference, not by copy.

Implements CORBA::Exception.

◆ _tao_errno()

CORBA::ULong CORBA::SystemException::_tao_errno ( int errno_value)
static

Helper to translate a platform-specific errno to a TAO errno value.

◆ _tao_get_omg_exception_description()

const char * CORBA::SystemException::_tao_get_omg_exception_description ( const CORBA::SystemException & exc,
CORBA::ULong minor_code )
staticprotected

Return the exception description associated with the given OMG minor code.

◆ _tao_minor_code()

CORBA::ULong CORBA::SystemException::_tao_minor_code ( u_int location,
int errno_value )
static

Helper to create a minor status value.

◆ _tao_print_system_exception()

void CORBA::SystemException::_tao_print_system_exception ( FILE * f = stdout) const

Print the system exception ex to output determined by f. This function is not CORBA compliant.

◆ completed() [1/2]

CORBA::CompletionStatus CORBA::SystemException::completed ( ) const

Get the completion status.

◆ completed() [2/2]

void CORBA::SystemException::completed ( CORBA::CompletionStatus c)

Set the operation completion status.

◆ minor() [1/2]

CORBA::ULong CORBA::SystemException::minor ( ) const

Get the minor status.

◆ minor() [2/2]

void CORBA::SystemException::minor ( CORBA::ULong m)

Set the minor status.

◆ operator=()

CORBA::SystemException & CORBA::SystemException::operator= ( const SystemException & src)
protected

Assignment operator.

Member Data Documentation

◆ completed_

CORBA::CompletionStatus CORBA::SystemException::completed_
private

Completion status.

◆ minor_

CORBA::ULong CORBA::SystemException::minor_
private

Minor code.


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