Base Framework
Public Types | Public Member Functions | List of all members
OrbException Class Reference

Object Request Broker (ORB) exception. More...

#include <base/rmi/OrbException.h>

Inherits RMIException.

Public Types

enum  Causes {
  OUT_OF_MEMORY, NOT_SUPPORTED, INVALID_ENCODING_NAMESPACE, INVALID_PROTOCOL_NAMESPACE,
  SCHEME_NOT_REGISTERED, SCHEME_MISSING, NOT_AN_END_POINT, INVALID_SCHEME,
  SCHEME_MISMATCH, UNABLE_TO_ESTABLISH_CONNECTION, INVALID_ENCODING, UNABLE_TO_INITIALIZE_FACTORY,
  INVALID_METHOD
}
 
- Public Types inherited from Exception
enum  DumpOnThrow { DUMP_ON_THROW_NO = 0, DUMP_ON_THROW_EXCEPTION, DUMP_ON_THROW_STACK }
 
typedef void(* ExceptionHandler) (const Exception *exception)
 

Public Member Functions

 OrbException () noexcept
 
 OrbException (const char *message) noexcept
 
 OrbException (const Type &type) noexcept
 
 OrbException (const char *message, const Type &type) noexcept
 
- Public Member Functions inherited from RMIException
 RMIException () noexcept
 
 RMIException (const char *message) noexcept
 
 RMIException (const Type &type) noexcept
 
 RMIException (const char *message, const Type &type) noexcept
 
- Public Member Functions inherited from Exception
 Exception () noexcept
 
 Exception (const char *message) noexcept
 
 Exception (const Type &type) noexcept
 
 Exception (const char *message, const Type &type) noexcept
 
 Exception (const Exception &copy) noexcept
 
 Exception (Exception &&move) noexcept
 
unsigned int getCause () const noexcept
 
void setCause (unsigned int cause) noexcept
 
unsigned int getError () const noexcept
 
void setError (unsigned int error) noexcept
 
const char * getMessage () const noexcept
 
void setMessage (const char *message) noexcept
 
template<decltype(sizeof(void *)) SIZE>
void setMessage (const char(&_message)[SIZE]) noexcept
 
virtual Type getThisType () const noexcept
 
const TypegetType () const noexcept
 
void setType (const Type &type) noexcept
 
virtual bool isCommonException () const noexcept
 
OwnedNativeString getHTML () const
 
virtual ~Exception () noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from Exception
static void onThrow (const Exception &exception) noexcept
 
static void rethrow ()
 
static bool getDumpExceptions () noexcept
 
static void setDumpExceptions (bool _dumpExceptions) noexcept
 
static ExceptionHandler setExceptionHandler (ExceptionHandler _exceptionHandler) noexcept
 
static bool hasPendingException () noexcept
 
static bool isUnwinding () noexcept
 
static unsigned int getPendingExceptions () noexcept
 
static const char * getStdExceptionName (const std::exception &e) noexcept
 
static Type getExceptionType () noexcept
 
static StackTrace getStackTrace ()
 
static void setDumpOnThrow (DumpOnThrow dumpOnThrow) noexcept
 
- Static Public Attributes inherited from Exception
static constexpr bool SUPPORTS_EXCEPTIONS = true
 

Detailed Description

Object Request Broker (ORB) exception.

Object Request Broker (ORB) exception.

Version
1.0

Member Enumeration Documentation

◆ Causes

Exception causes.

Enumerator
OUT_OF_MEMORY 

Out of memory.

NOT_SUPPORTED 

Operation is not supported.

INVALID_ENCODING_NAMESPACE 

Invalid encoding scheme namespace.

INVALID_PROTOCOL_NAMESPACE 

Invalid protocol namespace.

SCHEME_NOT_REGISTERED 

Scheme has not been registered.

SCHEME_MISSING 

Scheme is missing within URI.

NOT_AN_END_POINT 

URI does not specify an end point.

INVALID_SCHEME 

Scheme may be known but is invalid in context.

SCHEME_MISMATCH 

Scheme is not as expected.

UNABLE_TO_ESTABLISH_CONNECTION 

Unable to establish connection.

INVALID_ENCODING 

Violation of encoding scheme.

UNABLE_TO_INITIALIZE_FACTORY 

Unable to initialize factory.

INVALID_METHOD 

Method not found.

Constructor & Destructor Documentation

◆ OrbException() [1/4]

OrbException::OrbException ( )
inlinenoexcept

Initializes the exception object with no message.

◆ OrbException() [2/4]

OrbException::OrbException ( const char *  message)
inlinenoexcept

Initializes the exception object.

Parameters
messageThe message.

◆ OrbException() [3/4]

OrbException::OrbException ( const Type type)
inlinenoexcept

Initializes the exception object without an associated message.

Parameters
typeThe identity of the type.

◆ OrbException() [4/4]

OrbException::OrbException ( const char *  message,
const Type type 
)
inlinenoexcept

Initializes the exception object.

Parameters
messageAn NULL-terminated string (ASCII).
typeThe identity of the type.