Exception for signaling that a string did not parse correctly.
More...
#include <libCZI_exceptions.h>
Exception for signaling that a string did not parse correctly.
◆ ErrorType
Values that represent error types.
Enumerator |
---|
InvalidSyntax | The string parsed has an invalid syntax.
|
DuplicateDimension | When parsing a string representation of a coordinate, it was detected, that a dimension occurred more than once.
|
FromGreaterThanTo | A range was parsed, and the start value is bigger than the end value.
|
Unspecified | General error.
|
◆ LibCZIStringParseException()
libCZI::LibCZIStringParseException::LibCZIStringParseException |
( |
const char * |
szErrMsg, |
|
|
int |
numberOfCharsParsedOk, |
|
|
ErrorType |
errorType |
|
) |
| |
|
inline |
Constructor for the LibCZIStringParseException. This type is used to signal that a string did not parse correctly.
- Parameters
-
szErrMsg | Message describing the error. |
numberOfCharsParsedOk | Number of characters parsed ok. The parse error occurred after this position. If negative, then this information is not available. |
errorType | Type of the error. |
◆ GetErrorType()
ErrorType libCZI::LibCZIStringParseException::GetErrorType |
( |
| ) |
const |
|
inline |
Gets error type.
- Returns
- The error type.
◆ GetNumberOfCharsParsedOk()
int libCZI::LibCZIStringParseException::GetNumberOfCharsParsedOk |
( |
| ) |
const |
|
inline |
Gets number of characters that parsed correctly. The parse error occurred after this position. If this number is negative, then this information is not available and valid.
- Returns
- The number of characters parsed that parsed correctly. If the number is negative, this information is not available.
The documentation for this class was generated from the following file: