Provides an pstore-specific error codes and a suitable error category for them.
More...
#include <cstdlib>
#include <system_error>
#include "pstore/support/utf.hpp"
#include <iostream>
Go to the source code of this file.
|
| #define | PSTORE_ERROR_CODES |
| |
|
#define | X(a) a, |
| |
|
| enum | error_code : int { PSTORE_ERROR_CODES
} |
| |
|
|
std::error_category const & | pstore::get_error_category () |
| |
|
std::error_code | pstore::make_error_code (error_code const erc) |
| |
|
std::error_code | pstore::make_error_code (errno_erc const erc) noexcept |
| |
|
template<typename Exception , typename = typename std::enable_if< std::is_base_of<std::exception, Exception>::value>::type> |
| PSTORE_NO_RETURN void | pstore::raise_exception (Exception const &exc) |
| |
|
template<typename ErrorCode > |
| PSTORE_NO_RETURN void | pstore::raise_error_code (ErrorCode erc) |
| |
|
template<typename ErrorCode , typename StrType > |
| PSTORE_NO_RETURN void | pstore::raise_error_code (ErrorCode erc, StrType const &what) |
| |
|
template<typename ErrorType > |
| PSTORE_NO_RETURN void | pstore::raise (ErrorType erc) |
| |
|
template<typename ErrorType , typename StrType > |
| PSTORE_NO_RETURN void | pstore::raise (ErrorType erc, StrType const &what) |
| |
Provides an pstore-specific error codes and a suitable error category for them.
◆ PSTORE_ERROR_CODES
| #define PSTORE_ERROR_CODES |
Value:X (none) \
X (transaction_on_read_only_database)
\
X (unknown_revision) \
X (header_corrupt) \
X (header_version_mismatch) \
X (footer_corrupt) \
X (index_corrupt) \
X (bad_alignment) \
X (index_not_latest_revision) \
X (unknown_process_path) \
X (store_closed) \
X (cannot_allocate_after_commit)
\
X (bad_address) \
X (read_only_address) \
X (did_not_read_number_of_bytes_requested) \
X (uuid_parse_error) \
X (bad_message_part_number) \
X (unable_to_open_named_pipe) \
X (pipe_write_timeout) \
X (write_failed)