TAO 4.0.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
CORBA::UserException Class Referenceabstract

Application- or OMG- defined CORBA exception sub-class. More...

#include <UserException.h>

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

Public Member Functions

 UserException (UserException const &rhs)
 Copy constructor.
 
virtual ~UserException ()=default
 Destructor.
 
UserExceptionoperator= (UserException const &rhs)
 Assignment operator.
 
virtual void _raise () const =0
 
virtual CORBA::TypeCode_ptr _tao_type () const
 Will be overridden in the concrete derived classes.
 
 UserException (char const *repository_id, char const *local_name)
 Constructor from a repository id.
 
virtual ACE_CString _info () const
 
- 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.
 
void _tao_print_exception (const char *info, FILE *f=stdout) const
 Print the exception to output determined by f.
 
virtual void _tao_encode (TAO_OutputCDR &cdr) const =0
 
virtual void _tao_decode (TAO_InputCDR &cdr)=0
 
virtual CORBA::Exception_tao_duplicate () const =0
 Deep copy.
 

Static Public Member Functions

static UserException_downcast (CORBA::Exception *exception)
 The narrow operation.
 
static const UserException_downcast (CORBA::Exception const *exception)
 The const version of narrow operation.
 
- 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.
 

Protected Member Functions

 UserException ()
 Default constructor.
 
- 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

Application- or OMG- defined CORBA exception sub-class.

User exceptions can be defined in application OMG IDL or by the OMG itself for IDL interfaces and services it defines.

Constructor & Destructor Documentation

◆ UserException() [1/3]

CORBA::UserException::UserException ( CORBA::UserException const & rhs)

Copy constructor.

◆ ~UserException()

virtual CORBA::UserException::~UserException ( )
virtualdefault

Destructor.

◆ UserException() [2/3]

CORBA::UserException::UserException ( char const * repository_id,
char const * local_name )

Constructor from a repository id.

◆ UserException() [3/3]

CORBA::UserException::UserException ( )
protected

Default constructor.

Member Function Documentation

◆ _downcast() [1/2]

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

The narrow operation.

◆ _downcast() [2/2]

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

The const version of narrow operation.

◆ _info()

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

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

Implements CORBA::Exception.

◆ _raise()

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

◆ _tao_type()

CORBA::TypeCode_ptr CORBA::UserException::_tao_type ( ) const
virtual

Will be overridden in the concrete derived classes.

Implements CORBA::Exception.

Reimplemented in CORBA::WrongTransaction.

◆ operator=()

CORBA::UserException & CORBA::UserException::operator= ( CORBA::UserException const & rhs)

Assignment operator.


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