#include <libCZI_exceptions.h>
Exception for signaling an I/O error. If the problem originates from the (external) stream-object, then the original exception is enclosed here as a nested exception. In order to access the nested exception, use something like this:
try
{
spReader->Open(stream);
}
{
try
{
excp.rethrow_nested();
}
catch (std::ios_base::failure& innerExcp)
{
....
}
}
Definition libCZI_exceptions.h:109
◆ LibCZIIOException()
libCZI::LibCZIIOException::LibCZIIOException |
( |
const char * |
szErrMsg, |
|
|
std::uint64_t |
offset, |
|
|
std::uint64_t |
size |
|
) |
| |
|
inline |
Constructor for the LibCZIIOException. This type is used to signal an I/O-error from the underlying stream.
- Parameters
-
szErrMsg | Message describing the error. |
offset | The offset (into the stream) at which the I/O-error occurred. |
size | The size of data we have attempted to read (when the I/O-error occurred). |
◆ GetOffset()
std::uint64_t libCZI::LibCZIIOException::GetOffset |
( |
| ) |
const |
|
inline |
Gets the offset (in bytes) into the stream at which the I/O-error occurred.
- Returns
- The offset (in bytes).
◆ GetSize()
std::uint64_t libCZI::LibCZIIOException::GetSize |
( |
| ) |
const |
|
inline |
Gets the size of data (in bytes) we attempted to read when the I/O-error occurred.
- Returns
- The size (in bytes).
The documentation for this class was generated from the following file: