Public Types | Public Member Functions

ctkServiceException Class Reference

#include <Libs/PluginFramework/ctkServiceException.h>

List of all members.

Public Types

enum  Type {
  UNSPECIFIED = 0, UNREGISTERED = 1, FACTORY_ERROR = 2, FACTORY_EXCEPTION = 3,
  SUBCLASSED = 4, REMOTE = 5
}

Public Member Functions

 ctkServiceException (const QString &msg, const Type &type=UNSPECIFIED, const std::exception &cause=std::exception())
 ctkServiceException (const QString &msg, const std::exception &cause)
 ctkServiceException (const ctkServiceException &o)
std::exception getCause () const
Type getType () const
ctkServiceExceptionoperator= (const ctkServiceException &o)
void setCause (const std::exception &) throw (std::logic_error)
 ~ctkServiceException () throw ()

Detailed Description

Definition at line 33 of file ctkServiceException.h.


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.

SUBCLASSED 

The exception is a subclass of ctkServiceException. The subclass should be examined for the type of the exception.

REMOTE 

An error occurred invoking a remote service.

Definition at line 37 of file ctkServiceException.h.


Constructor & Destructor Documentation

ctkServiceException::ctkServiceException ( const QString &  msg,
const Type type = UNSPECIFIED,
const std::exception &  cause = std::exception() 
)

Definition at line 27 of file ctkServiceException.cpp.

ctkServiceException::ctkServiceException ( const QString &  msg,
const std::exception &  cause 
)

Definition at line 34 of file ctkServiceException.cpp.

ctkServiceException::ctkServiceException ( const ctkServiceException o  ) 

Definition at line 41 of file ctkServiceException.cpp.

ctkServiceException::~ctkServiceException (  )  throw () [inline]

Definition at line 71 of file ctkServiceException.h.


Member Function Documentation

std::exception ctkServiceException::getCause (  )  const

Definition at line 55 of file ctkServiceException.cpp.

ctkServiceException::Type ctkServiceException::getType (  )  const

Definition at line 67 of file ctkServiceException.cpp.

ctkServiceException & ctkServiceException::operator= ( const ctkServiceException o  ) 

Definition at line 47 of file ctkServiceException.cpp.

void ctkServiceException::setCause ( const std::exception &  cause  )  throw (std::logic_error)

Definition at line 60 of file ctkServiceException.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines