Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Public Member Functions | Private Member Functions | Private Attributes | List of all members
dirac::DiracException Class Reference

DiracException is the class which should be used for all exceptions within Dirac.

#include <dirac_exception.h>

Public Member Functions

 DiracException (const DiracErrorCode &errorCode, const std::string &errorMessage, const DiracSeverityCode &severityCode)
 Construct from error source ID, error code, and message. More...
 
 DiracException (const DiracException &src)
 Copy constructor. More...
 
virtual ~DiracException ()
 Destructor. More...
 
DiracErrorCode GetErrorCode () const
 Get the error code of this exception. More...
 
DiracSeverityCode GetSeverityCode () const
 Get the severity level of this exception. More...
 
std::string GetErrorMessage () const
 Get the error message of this exception. More...
 

Private Member Functions

DiracExceptionoperator= (const DiracException &)
 

Private Attributes

DiracErrorCode mErrorCode
 The error code of this exception. More...
 
DiracSeverityCode mSeverityCode
 Severity of exception. More...
 
std::string mErrorMessage
 The error message. More...
 

Constructor & Destructor Documentation

◆ DiracException() [1/2]

dirac::DiracException::DiracException ( const DiracErrorCode errorCode,
const std::string &  errorMessage,
const DiracSeverityCode severityCode 
)
Parameters
errorCodeThe error code.
errorMessageThe error message.
severityCodeThe error source ID.

◆ DiracException() [2/2]

dirac::DiracException::DiracException ( const DiracException src)

◆ ~DiracException()

virtual dirac::DiracException::~DiracException ( )
virtual

Member Function Documentation

◆ GetErrorCode()

DiracErrorCode dirac::DiracException::GetErrorCode ( ) const
Returns
The error code of this exception.

◆ GetErrorMessage()

std::string dirac::DiracException::GetErrorMessage ( ) const
Returns
The error message of this exception.

◆ GetSeverityCode()

DiracSeverityCode dirac::DiracException::GetSeverityCode ( ) const
Returns
The severity level of this exception.

◆ operator=()

DiracException & dirac::DiracException::operator= ( const DiracException )
private

Member Data Documentation

◆ mErrorCode

DiracErrorCode dirac::DiracException::mErrorCode
private

◆ mErrorMessage

std::string dirac::DiracException::mErrorMessage
private

◆ mSeverityCode

DiracSeverityCode dirac::DiracException::mSeverityCode
private

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

© 2004 British Broadcasting Corporation. Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.