HomeManualTopicsTypesSymbols

std::is_an_error

returns true if the argument denotes an error-object

Parameters

None

Results

None

Example

load! $buf "some-non-existing-file" on buf.is_an_error: println! error_message_text_of(buf)

Output

OPEN FAILED

Topic

Errors

See also

std::error_message_text_of retrieves the error message text of the error object
std::error_category_of retrieves the error category of the error object
std::error_details_of retrieves the error details of the error object
std::errno_of retrieves the errno value of the error object
std::failed_attribute_of retrieves the *attribute* associated with the error object

Implemented by

std_types::error error objects are errors
std_types::object objects are not errors by default
std_types::undefined the special undefined object is not an error