class seams::Error¶
Overview¶
Failure from the C API, or from a rejected argument. More…
Detailed Documentation¶
Failure from the C API, or from a rejected argument.
what() is the text from seams_handle_error. code() is the status integer. The object does not own a handle.
Construction¶
Error(int status, std::string message)
Build an error from a status and a message.
Parameters:
status |
Status code. Zero is not thrown by |
message |
Detail text. An empty string is allowed. |
Methods¶
Status status() const
Status as the Status enumeration when the code is known.
Returns:
The matching enumerator.
int code() const
Status integer.
Same values as seams_status.
Returns:
The code stored at construction.