Function desfire::error_from_status

Function Documentation

error desfire::error_from_status(bits::status s)

Converts an internal bits::status object into its corresponding error code.

Parameters:

s – A status that represents an error.

Returns:

Simply the cast of s to error; if s does not represent an error, returns error::malformed.