Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
us::ServiceException Class Reference

#include <usServiceException.h>

Inheritance diagram for us::ServiceException:
Collaboration diagram for us::ServiceException:

Public Types

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

Public Member Functions

 ServiceException (const std::string &msg, const Type &type=UNSPECIFIED)
 
 ServiceException (const ServiceException &o)
 
ServiceExceptionoperator= (const ServiceException &o)
 
 ~ServiceException () throw ()
 
Type GetType () const
 

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.

Definition at line 50 of file usServiceException.h.

Constructor & Destructor Documentation

us::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.

Definition at line 28 of file usServiceException.cpp.

us::ServiceException::ServiceException ( const ServiceException o)

Definition at line 34 of file usServiceException.cpp.

us::ServiceException::~ServiceException ( )
throw (
)
inline

Definition at line 94 of file usServiceException.h.

Member Function Documentation

ServiceException::Type us::ServiceException::GetType ( ) const

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

Returns
The type of this exception.

Definition at line 47 of file usServiceException.cpp.

ServiceException & us::ServiceException::operator= ( const ServiceException o)

Definition at line 40 of file usServiceException.cpp.


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