24 const char*
what() const noexcept
override {
44 using runtime_error::runtime_error;
49 using runtime_error::runtime_error;
55 return (code >> 30U) == 0x00;
59 return (code >> 30U) == 0x01;
63 return (code >> 30U) >= 0x02;
70 std::rethrow_exception(eptr);
74 }
catch (
const std::bad_alloc& ) {
Specific exception for open62541 status code UA_STATUSCODE_BADDISCONNECT.
Exception for bad status codes from open62541 UA_STATUSCODE_*.
BadStatus(UA_StatusCode code)
UA_StatusCode code() const noexcept
const char * what() const noexcept override
constexpr bool isGood(UA_StatusCode code) noexcept
UA_StatusCode getStatusCode(std::exception_ptr eptr) noexcept
constexpr bool isUncertain(UA_StatusCode code) noexcept
constexpr bool isBad(UA_StatusCode code) noexcept
constexpr void throwIfBad(UA_StatusCode code)
Check the status code and throw a BadStatus exception if the status code is bad.
#define UA_STATUSCODE_BADINTERNALERROR
#define UA_STATUSCODE_BADOUTOFMEMORY
#define UA_STATUSCODE_GOOD
#define UA_STATUSCODE_BADDISCONNECT
UA_EXPORT const char * UA_StatusCode_name(UA_StatusCode code)