ldas-tools-al  2.6.4
Public Types | Public Member Functions | List of all members
StreamException Class Reference

Stream Exception. More...

#include <streamexception.hh>

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

Public Types

enum  Error {
  BAD_STREAM = 0, FAIL_STREAM, END_OF_FILE, UNKNOWN_ERROR,
  BAD_STREAM = 0, FAIL_STREAM, END_OF_FILE, UNKNOWN_ERROR
}
 Enumerated type classifying the type of stream errors. More...
 
enum  Error {
  BAD_STREAM = 0, FAIL_STREAM, END_OF_FILE, UNKNOWN_ERROR,
  BAD_STREAM = 0, FAIL_STREAM, END_OF_FILE, UNKNOWN_ERROR
}
 Enumerated type classifying the type of stream errors. More...
 

Public Member Functions

 StreamException (std::istream &in, int library, const std::string &info, const char *file=0, size_t line=0)
 Constructor. More...
 
 StreamException (std::ostream &out, int library, const std::string &info, const char *file=0, size_t line=0)
 Constructor. More...
 
 StreamException (int library, int code, const std::string &message, const std::string &info, const char *file=0, size_t line=0) throw ( )
 Constructor. More...
 
 StreamException (std::istream &in, int library, const std::string &info, const char *file=0, size_t line=0)
 
 StreamException (std::ostream &out, int library, const std::string &info, const char *file=0, size_t line=0)
 
 StreamException (int library, int code, const std::string &message, const std::string &info, const char *file=0, size_t line=0) throw ( )
 
bool operator== (const LdasException &e) const
 Equal Comparison. More...
 
bool operator== (const LdasException &e) const
 
bool operator!= (const LdasException &e) const
 Not-Equal Comparison. More...
 
bool operator!= (const LdasException &e) const
 
const ErrorInfogetError (size_t i) const
 Get Error Info. More...
 
const ErrorInfogetError (size_t i) const
 
const ErrorInfooperator[] (size_t i) const
 Array Operator. More...
 
const ErrorInfooperator[] (size_t i) const
 
size_t getSize () const
 Get Size. More...
 
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. More...
 
void addError (const ErrorInfo &e)
 Add Error. More...
 
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)
 

Detailed Description

Stream Exception.

Member Enumeration Documentation

◆ Error [1/2]

Enumerated type classifying the type of stream errors.

Enumerator
BAD_STREAM 
FAIL_STREAM 
END_OF_FILE 
UNKNOWN_ERROR 
BAD_STREAM 
FAIL_STREAM 
END_OF_FILE 
UNKNOWN_ERROR 

◆ Error [2/2]

Enumerated type classifying the type of stream errors.

Enumerator
BAD_STREAM 
FAIL_STREAM 
END_OF_FILE 
UNKNOWN_ERROR 
BAD_STREAM 
FAIL_STREAM 
END_OF_FILE 
UNKNOWN_ERROR 

Constructor & Destructor Documentation

◆ StreamException() [1/6]

StreamException::StreamException ( std::istream &  in,
int  library,
const std::string &  info,
const char *  file = 0,
size_t  line = 0 
)

Constructor.

Parameters
inInput Stream
libraryName of library or api
infoAdditional information about th exception
fileName of file where exception was thrown
lineLine of file where exception was thrown

◆ StreamException() [2/6]

StreamException::StreamException ( std::ostream &  out,
int  library,
const std::string &  info,
const char *  file = 0,
size_t  line = 0 
)

Constructor.

Parameters
outOutput stream
libraryName of library or api
infoAdditional information about the exception
fileName of file where exception was thrown
lineLine of file where exception was thrown

◆ StreamException() [3/6]

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

Constructor.

Parameters
libraryName of library or api casuing the excption
codeCode for the exception
messageText message describing the exception
infoAdditional information about the exception
fileName of the file where the exception was thrown
lineLine number of the file where the exception was thrown

◆ StreamException() [4/6]

StreamException::StreamException ( std::istream &  in,
int  library,
const std::string &  info,
const char *  file = 0,
size_t  line = 0 
)

◆ StreamException() [5/6]

StreamException::StreamException ( std::ostream &  out,
int  library,
const std::string &  info,
const char *  file = 0,
size_t  line = 0 
)

◆ StreamException() [6/6]

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

Member Function Documentation

◆ addError() [1/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() [2/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

◆ addError() [3/4]

void LdasException::addError ( const ErrorInfo e)
inherited

Add Error.

Add another error info object to the class.

Parameters
e

◆ addError() [4/4]

void LdasException::addError ( const ErrorInfo e)
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
inherited

◆ getSize() [2/2]

size_t LdasException::getSize ( ) const
inlineinherited

Get Size.

Return the number of ErrorInfo objects contained in this object.

Returns
size_t

◆ 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
inherited

◆ operator==() [2/2]

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

Equal Comparison.

Parameters
e
Returns
bool

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

Array Operator.

Parameters
i
Returns
const ErrorInfo&

exc: range_error


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