Exception raised for malformed streams, invalid options, and codec failures. More...
#include <compression.hpp>
Public Member Functions | |
| compression_error (error_code code, format stream_format, std::string message) | |
| Constructs a compression exception. | |
| char const * | what () const noexcept override |
| Returns the human-readable diagnostic. | |
| error_code | code () const noexcept |
| Returns the stable error category. | |
| format | stream_format () const noexcept |
| Returns the stream format involved in the error. | |
Exception raised for malformed streams, invalid options, and codec failures.
The error category and stream format are stable programmatic context. The diagnostic returned by what() is intended for humans and is not a stable API.
Definition at line 95 of file compression.hpp.
| rpnx::compression::compression_error::compression_error | ( | error_code | code, |
| format | stream_format, | ||
| std::string | message ) |
Constructs a compression exception.
| code | Stable category for the failure. |
| stream_format | Wire format being processed when the failure occurred. |
| message | Human-readable diagnostic retained by the exception. |
References code(), and stream_format().
|
nodiscardnoexcept |
Returns the stable error category.
References code().
Referenced by code(), and compression_error().
|
nodiscardnoexcept |
Returns the stream format involved in the error.
References stream_format().
Referenced by compression_error(), and stream_format().
|
nodiscardoverridenoexcept |
Returns the human-readable diagnostic.