Stream Exception.
More...
#include <streamexception.hh>
|
enum | Error |
| Enumerated type classifying the type of stream errors.
|
|
|
| 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...
|
|
bool | operator== (const LdasException &e) const |
| Equal Comparison. More...
|
|
bool | operator!= (const LdasException &e) const |
| Not-Equal Comparison. More...
|
|
const ErrorInfo & | getError (size_t i) const |
| Get Error Info. More...
|
|
const ErrorInfo & | operator[] (size_t i) const |
| Array Operator. More...
|
|
size_t | getSize () const |
| Get Size. More...
|
|
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...
|
|
◆ StreamException() [1/3]
StreamException::StreamException |
( |
std::istream & |
in, |
|
|
int |
library, |
|
|
const std::string & |
info, |
|
|
const char * |
file = 0 , |
|
|
size_t |
line = 0 |
|
) |
| |
Constructor.
- Parameters
-
in | Input Stream |
library | Name of library or api |
info | Additional information about th exception |
file | Name of file where exception was thrown |
line | Line of file where exception was thrown |
◆ StreamException() [2/3]
StreamException::StreamException |
( |
std::ostream & |
out, |
|
|
int |
library, |
|
|
const std::string & |
info, |
|
|
const char * |
file = 0 , |
|
|
size_t |
line = 0 |
|
) |
| |
Constructor.
- Parameters
-
out | Output stream |
library | Name of library or api |
info | Additional information about the exception |
file | Name of file where exception was thrown |
line | Line of file where exception was thrown |
◆ StreamException() [3/3]
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
-
library | Name of library or api casuing the excption |
code | Code for the exception |
message | Text message describing the exception |
info | Additional information about the exception |
file | Name of the file where the exception was thrown |
line | Line number of the file where the exception was thrown |
◆ addError() [1/2]
void LdasException::addError |
( |
const ErrorInfo & |
e | ) |
|
|
inherited |
Add Error.
Add another error info object to the class.
- Parameters
-
◆ addError() [2/2]
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 | |
◆ getError()
const ErrorInfo & LdasException::getError |
( |
size_t |
i | ) |
const |
|
inherited |
Get Error Info.
- Parameters
-
- Returns
- const ErrorInfo&
exc: range_error
◆ getSize()
size_t LdasException::getSize |
( |
| ) |
const |
|
inlineinherited |
Get Size.
Return the number of ErrorInfo objects contained in this object.
- Returns
- size_t
◆ operator!=()
Not-Equal Comparison.
- Parameters
-
- Returns
- bool
◆ operator==()
Equal Comparison.
- Parameters
-
- Returns
- bool
◆ operator[]()
const ErrorInfo & LdasException::operator[] |
( |
size_t |
i | ) |
const |
|
inherited |
Array Operator.
- Parameters
-
- Returns
- const ErrorInfo&
exc: range_error
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/src/streamexception.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/src/streamexception.cc