![]() |
NDEVR
API Documentation
|
Thrown when a provided time format cannot be parsed from a given time string. More...
Public Member Functions | |
| TimeFormatException (const StringView &time_string, const StringView &format_string, TranslatedString message) | |
| Constructor initializing with a custom translated error message. | |
| TimeFormatException (const StringView &time_string, const StringView &format_string, uint04 position) | |
| Constructor initializing the exception with a time string, format, and failure position. | |
| void | makeMessage () |
| Constructs a human-readable error message from the stored time string, format, and position. | |
Public Attributes | |
| String | format_string |
| The expected format string that the time string should have matched. | |
| uint04 | position |
| The character position in the time string where parsing failed. | |
| String | time_string |
| The original time string that failed to parse. | |
Thrown when a provided time format cannot be parsed from a given time string.
Definition at line 9 of file TimeException.h.
|
inline |
Constructor initializing the exception with a time string, format, and failure position.
| [in] | time_string | The string that time extraction was attempted on. |
| [in] | format_string | The format that time_string should have adhered to. |
| [in] | position | The character position where parsing failed. |
Definition at line 18 of file TimeException.h.
References format_string, position, and time_string.
|
inline |
Constructor initializing with a custom translated error message.
| [in] | time_string | The string that time extraction was attempted on. |
| [in] | format_string | The format that time_string should have adhered to. |
| [in] | message | A custom translated message describing the error. |
Definition at line 30 of file TimeException.h.
References format_string, position, and time_string.