20 : std::runtime_error(szErrMsg)
64 int numberOfCharsParsedOk;
73 :
LibCZIException(szErrMsg), errorType(errorType), numberOfCharsParsedOk(numberOfCharsParsedOk)
111 std::uint64_t offset;
127 std::uint64_t
GetOffset()
const {
return this->offset; }
133 std::uint64_t
GetSize()
const {
return this->size; }
Exception for signaling errors specific for accessors.
Definition: libCZI_exceptions.h:26
LibCZIAccessorException(const char *szErrMsg, ErrorType errorType)
Definition: libCZI_exceptions.h:41
ErrorType GetErrorType() const
Definition: libCZI_exceptions.h:47
ErrorType
Values that represent error types.
Definition: libCZI_exceptions.h:30
@ Unspecified
Unspecified error.
@ CouldntDeterminePixelType
The pixeltype could not be determined.
Base class for all libCZI-specific exceptions.
Definition: libCZI_exceptions.h:15
LibCZIException(const char *szErrMsg)
Definition: libCZI_exceptions.h:19
Definition: libCZI_exceptions.h:109
std::uint64_t GetOffset() const
Definition: libCZI_exceptions.h:127
LibCZIIOException(const char *szErrMsg, std::uint64_t offset, std::uint64_t size)
Definition: libCZI_exceptions.h:120
std::uint64_t GetSize() const
Definition: libCZI_exceptions.h:133
Exception for signaling errors when using the CziReaderWriter-object.
Definition: libCZI_exceptions.h:238
LibCZIReaderWriteException(const char *szErrMsg, ErrorType code)
Definition: libCZI_exceptions.h:253
ErrorType
Values that represent different error conditions.
Definition: libCZI_exceptions.h:242
@ InvalidAttachmentId
An invalid attachment-id was specified.
@ AddCoordinateAlreadyExisting
A subblock with the same coordinate and same M-index was added before.
@ InvalidSubBlkId
An invalid subblock-id was specified.
@ AddAttachmentAlreadyExisting
An attachment with the same key was added before.
ErrorType GetErrorType() const
Definition: libCZI_exceptions.h:260
Exception for signaling that a string did not parse correctly.
Definition: libCZI_exceptions.h:52
ErrorType
Values that represent error types.
Definition: libCZI_exceptions.h:56
@ DuplicateDimension
When parsing a string representation of a coordinate, it was detected, that a dimension occurred more...
@ Unspecified
General error.
@ InvalidSyntax
The string parsed has an invalid syntax.
@ FromGreaterThanTo
A range was parsed, and the start value is bigger than the end value.
LibCZIStringParseException(const char *szErrMsg, int numberOfCharsParsedOk, ErrorType errorType)
Definition: libCZI_exceptions.h:72
int GetNumberOfCharsParsedOk() const
Definition: libCZI_exceptions.h:83
ErrorType GetErrorType() const
Definition: libCZI_exceptions.h:78
Exception for signaling errors when using the CziWriter-object.
Definition: libCZI_exceptions.h:205
ErrorType GetErrorType() const
Definition: libCZI_exceptions.h:230
LibCZIWriteException(const char *szErrMsg, ErrorType code)
Definition: libCZI_exceptions.h:223
ErrorType
Values that represent different error conditions.
Definition: libCZI_exceptions.h:209
@ AddCoordinateContainsUnexpectedDimension
the coordinate of the subblock to be added contains a dimension that was not expected.
@ SubBlockCoordinateOutOfBounds
The subblock's coordinate was determined to be out-of-bounds.
@ AddCoordinateAlreadyExisting
A subblock with the same coordinate and same M-index was added before.
@ SubBlockCoordinateInsufficient
The subblock's coordinate was determined to be insufficient.
@ AddAttachmentAlreadyExisting
An attachment with the same key was added before.
@ GetDataCallError
A call to a getData-functor gave an invalid result.
@ NotEnoughDataWritten
A write-operation reported that less data was written than requested.
Exception for signaling errors when parsing the XML-metadata.
Definition: libCZI_exceptions.h:323
LibCZIXmlParseException(const char *szErrMsg)
Definition: libCZI_exceptions.h:328
External interfaces, classes, functions and structs are found in the namespace "libCZI".
Definition: libCZI.h:31
Exception for signaling errors parsing the CZI-stream.
Definition: libCZI_exceptions.h:139
ErrorCode
Values that represent different error conditions.
Definition: libCZI_exceptions.h:142
@ CorruptedData
An enum constant representing that the data was detected to be bogus.
@ InternalError
An internal error was detected.
@ NonConformingSubBlockDimensionEntry
An enum constant representing that the dimension-entry of a subblock was found to be non-conforming.
@ NotEnoughData
An enum constant representing that not the expected amount of data could be read.
LibCZICZIParseException(const char *szErrMsg, ErrorCode code)
Definition: libCZI_exceptions.h:153
ErrorCode GetErrorCode() const
Definition: libCZI_exceptions.h:160
Exception for signaling an incorrect plane-coordinate object.
Definition: libCZI_exceptions.h:181
ErrorCode
Values that represent different error conditions.
Definition: libCZI_exceptions.h:184
@ MissingDimension
An enum constant representing that the plane-coordinate did not contain a coordinate which is require...
@ SurplusDimension
An enum constant representing a dimension was specified which is not found in the document.
@ InvalidDimension
An enum constant representing that the plane-coordinate contained a dimension which is not used to sp...
@ CoordinateOutOfRange
An enum constant representing that a coordinate was given which is out-of-range.
LibCZIInvalidPlaneCoordinateException(const char *szErrMsg, ErrorCode code)
Definition: libCZI_exceptions.h:195
Definition: libCZI_exceptions.h:168
LibCZISegmentNotPresent(const char *szErrMsg)
Definition: libCZI_exceptions.h:173