ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
FormatException Class Reference

Format Exception. More...

#include <formatexception.hh>

Inheritance diagram for FormatException:
Collaboration diagram for FormatException:

Public Member Functions

 FormatException (int library, int code, const std::string &1="", const std::string &info="", const char *file=0, size_t line=0) throw ( )
 Constructor.
 
 FormatException (int library, int code, const std::string &1="", const std::string &info="", const char *file=0, size_t line=0) throw ( )
 
bool operator== (const LdasException &e) const
 Equal Comparison.
 
bool operator== (const LdasException &e) const
 
bool operator!= (const LdasException &e) const
 Not-Equal Comparison.
 
bool operator!= (const LdasException &e) const
 
const ErrorInfogetError (size_t i) const
 Get Error Info.
 
const ErrorInfogetError (size_t i) const
 
const ErrorInfooperator[] (size_t i) const
 Array Operator.
 
const ErrorInfooperator[] (size_t i) const
 
size_t getSize () const
 Get Size.
 
size_t getSize () const
 
void addError (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0)
 Add Error.
 
void addError (const ErrorInfo &e)
 Add Error.
 
void addError (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0)
 
void addError (const ErrorInfo &e)
 

Private Attributes

std::vector< ErrorInfomErrors
 

Detailed Description

Format Exception.

This class is derived from LdasException. It does not define any new methods or data. It is used simply to differentiate between error types when thrown.

Constructor & Destructor Documentation

◆ FormatException() [1/2]

FormatException::FormatException ( int library,
int code,
const std::string & 1 = "",
const std::string & info = "",
const char * file = 0,
size_t line = 0 )
throw ( )
inline

Constructor.

Just call the LdasException constructor.

Parameters
library
code
msg
info
file
line

◆ FormatException() [2/2]

FormatException::FormatException ( int library,
int code,
const std::string & 1 = "",
const std::string & info = "",
const char * file = 0,
size_t line = 0 )
throw ( )

Member Function Documentation

◆ addError() [1/4]

void LdasException::addError ( const ErrorInfo & e)
inherited

Add Error.

Add another error info object to the class.

Parameters
e

◆ addError() [2/4]

void LdasException::addError ( const ErrorInfo & e)
inherited

◆ addError() [3/4]

void LdasException::addError ( int library,
int code,
const std::string & 1,
const std::string & info = "",
const char * file = 0,
size_t line = 0 )
inherited

Add Error.

Add another error info object to the class.

Parameters
library
code
msg
info
file
line

◆ addError() [4/4]

void LdasException::addError ( int library,
int code,
const std::string & 1,
const std::string & info = "",
const char * file = 0,
size_t line = 0 )
inherited

◆ getError() [1/2]

const ErrorInfo & LdasException::getError ( size_t i) const
inherited

Get Error Info.

Parameters
i
Returns
const ErrorInfo&

exc: range_error

◆ getError() [2/2]

const ErrorInfo & LdasException::getError ( size_t i) const
inherited

◆ getSize() [1/2]

size_t LdasException::getSize ( ) const
inlineinherited

Get Size.

Return the number of ErrorInfo objects contained in this object.

Returns
size_t

◆ getSize() [2/2]

size_t LdasException::getSize ( ) const
inherited

◆ operator!=() [1/2]

bool LdasException::operator!= ( const LdasException & e) const
inlineinherited

Not-Equal Comparison.

Parameters
e
Returns
bool

◆ operator!=() [2/2]

bool LdasException::operator!= ( const LdasException & e) const
inherited

◆ operator==() [1/2]

bool LdasException::operator== ( const LdasException & e) const
inlineinherited

Equal Comparison.

Parameters
e
Returns
bool

◆ operator==() [2/2]

bool LdasException::operator== ( const LdasException & e) const
inherited

◆ operator[]() [1/2]

const ErrorInfo & LdasException::operator[] ( size_t i) const
inherited

Array Operator.

Parameters
i
Returns
const ErrorInfo&

exc: range_error

◆ operator[]() [2/2]

const ErrorInfo & LdasException::operator[] ( size_t i) const
inherited

Member Data Documentation

◆ mErrors

std::vector< ErrorInfo > LdasException::mErrors
privateinherited

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