C++ Micro Services  2.1.1
A dynamic OSGi-like C++ service registry
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
ServiceException Class Reference

A service exception used to indicate that a service problem occurred. More...

Inheritance diagram for ServiceException:
Inheritance graph
[legend]
Collaboration diagram for ServiceException:
Collaboration graph
[legend]

Public Types

enum  Type {
  UNSPECIFIED, UNREGISTERED, FACTORY_ERROR, FACTORY_EXCEPTION,
  REMOTE, FACTORY_RECURSION, UNSPECIFIED, UNREGISTERED,
  FACTORY_ERROR, FACTORY_EXCEPTION, REMOTE, FACTORY_RECURSION,
  UNSPECIFIED, UNREGISTERED, FACTORY_ERROR, FACTORY_EXCEPTION,
  REMOTE, FACTORY_RECURSION
}
enum  Type {
  UNSPECIFIED, UNREGISTERED, FACTORY_ERROR, FACTORY_EXCEPTION,
  REMOTE, FACTORY_RECURSION, UNSPECIFIED, UNREGISTERED,
  FACTORY_ERROR, FACTORY_EXCEPTION, REMOTE, FACTORY_RECURSION,
  UNSPECIFIED, UNREGISTERED, FACTORY_ERROR, FACTORY_EXCEPTION,
  REMOTE, FACTORY_RECURSION
}
enum  Type {
  UNSPECIFIED, UNREGISTERED, FACTORY_ERROR, FACTORY_EXCEPTION,
  REMOTE, FACTORY_RECURSION, UNSPECIFIED, UNREGISTERED,
  FACTORY_ERROR, FACTORY_EXCEPTION, REMOTE, FACTORY_RECURSION,
  UNSPECIFIED, UNREGISTERED, FACTORY_ERROR, FACTORY_EXCEPTION,
  REMOTE, FACTORY_RECURSION
}

Public Member Functions

 ServiceException (const std::string &msg, const Type &type=UNSPECIFIED)
 Creates a ServiceException with the specified message, type and exception cause.
 ServiceException (const ServiceException &o)
ServiceExceptionoperator= (const ServiceException &o)
 ~ServiceException () throw ()
Type GetType () const
 Returns the type for this exception or UNSPECIFIED if the type was unspecified or unknown.
 ServiceException (const std::string &msg, const Type &type=UNSPECIFIED)
 Creates a ServiceException with the specified message, type and exception cause.
 ServiceException (const ServiceException &o)
ServiceExceptionoperator= (const ServiceException &o)
 ~ServiceException () throw ()
Type GetType () const
 Returns the type for this exception or UNSPECIFIED if the type was unspecified or unknown.
 ServiceException (const std::string &msg, const Type &type=UNSPECIFIED)
 Creates a ServiceException with the specified message, type and exception cause.
 ServiceException (const ServiceException &o)
ServiceExceptionoperator= (const ServiceException &o)
 ~ServiceException () throw ()
Type GetType () const
 Returns the type for this exception or UNSPECIFIED if the type was unspecified or unknown.

Detailed Description

A service exception used to indicate that a service problem occurred.

A ServiceException object is created by the framework or to denote an exception condition in the service. An enum type is used to identify the exception type for future extendability.

This exception conforms to the general purpose exception chaining mechanism.

Member Enumeration Documentation

Enumerator:
UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

Enumerator:
UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

Enumerator:
UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

UNSPECIFIED 

No exception type is unspecified.

UNREGISTERED 

The service has been unregistered.

FACTORY_ERROR 

The service factory produced an invalid service object.

FACTORY_EXCEPTION 

The service factory threw an exception.

REMOTE 

An error occurred invoking a remote service.

FACTORY_RECURSION 

The service factory resulted in a recursive call to itself for the requesting module.

Constructor & Destructor Documentation

ServiceException::ServiceException ( const std::string &  msg,
const Type type = UNSPECIFIED 
)

Creates a ServiceException with the specified message, type and exception cause.

Parameters
msgThe associated message.
typeThe type for this exception.
ServiceException::ServiceException ( const ServiceException o)
ServiceException::~ServiceException ( ) throw ()
inline
ServiceException::ServiceException ( const std::string &  msg,
const Type type = UNSPECIFIED 
)

Creates a ServiceException with the specified message, type and exception cause.

Parameters
msgThe associated message.
typeThe type for this exception.
ServiceException::ServiceException ( const ServiceException o)
ServiceException::~ServiceException ( ) throw ()
inline
ServiceException::ServiceException ( const std::string &  msg,
const Type type = UNSPECIFIED 
)

Creates a ServiceException with the specified message, type and exception cause.

Parameters
msgThe associated message.
typeThe type for this exception.
ServiceException::ServiceException ( const ServiceException o)
ServiceException::~ServiceException ( ) throw ()
inline

Member Function Documentation

Type ServiceException::GetType ( ) const

Returns the type for this exception or UNSPECIFIED if the type was unspecified or unknown.

Returns
The type of this exception.
Type ServiceException::GetType ( ) const

Returns the type for this exception or UNSPECIFIED if the type was unspecified or unknown.

Returns
The type of this exception.
Type ServiceException::GetType ( ) const

Returns the type for this exception or UNSPECIFIED if the type was unspecified or unknown.

Returns
The type of this exception.
ServiceException& ServiceException::operator= ( const ServiceException o)
ServiceException& ServiceException::operator= ( const ServiceException o)
ServiceException& ServiceException::operator= ( const ServiceException o)