Used to indicate an error utilizing the ICU unicode library.
More...
#include <ICUException.hpp>
Used to indicate an error utilizing the ICU unicode library.
This type of exception is typically thrown when encoding, decoding, or doing character set conversion while utilizing the underlying ICU library.
Definition at line 15 of file ICUException.hpp.
◆ ICUException() [1/2]
inflection::exception::ICUException::ICUException |
( |
UErrorCode |
status | ) |
|
|
explicit |
Construct an exception for the provided UErrorCode.
◆ ICUException() [2/2]
inflection::exception::ICUException::ICUException |
( |
UErrorCode |
status, |
|
|
const std::u16string & |
message |
|
) |
| |
Construct an exception with an informative message for debugging purposes for the provided UErrorCode.
◆ ~ICUException()
inflection::exception::ICUException::~ICUException |
( |
| ) |
|
|
override |
◆ getError()
UErrorCode inflection::exception::ICUException::getError |
( |
| ) |
const |
Return the original UErrorCode.
◆ throwOnFailure() [1/3]
void inflection::exception::ICUException::throwOnFailure |
( |
UErrorCode |
status | ) |
|
|
inlinestatic |
Throw an exception when the UErrorCode is a failure.
- Parameters
-
status | The UErrorCode to check |
Definition at line 66 of file ICUException.hpp.
◆ throwOnFailure() [2/3]
void inflection::exception::ICUException::throwOnFailure |
( |
UErrorCode |
status, |
|
|
const char16_t * |
message |
|
) |
| |
|
inlinestatic |
Throw an exception when the UErrorCode is a failure.
- Parameters
-
status | The UErrorCode to check |
message | The additional message to return to aid in diagnosing the failure. |
Definition at line 75 of file ICUException.hpp.
◆ throwOnFailure() [3/3]
void inflection::exception::ICUException::throwOnFailure |
( |
UErrorCode |
status, |
|
|
const std::u16string & |
message |
|
) |
| |
|
inlinestatic |
Throw an exception when the UErrorCode is a failure.
- Parameters
-
status | The UErrorCode to check |
message | The additional message to return to aid in diagnosing the failure. |
Definition at line 84 of file ICUException.hpp.
The documentation for this class was generated from the following file:
- /home/runner/work/inflection/inflection/inflection/build/inflection_headers/inflection/exception/ICUException.hpp