8#ifndef INCLUDED_BSLSTL_SYSTEMERROR
9#define INCLUDED_BSLSTL_SYSTEMERROR
94#include <bslscm_version.h>
108#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
112#ifdef BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY
114#include <system_error>
117using std::system_error;
131class system_error :
public std::runtime_error {
136 system_error(error_code code,
const std::string& what);
140 system_error(error_code code,
const char *what);
141 system_error(error_code code);
143 system_error(
int value,
144 const error_category& category,
145 const std::string& what);
146 system_error(
int value,
const error_category& category,
const char *what);
150 system_error(
int value,
const error_category& category);
155 const error_code& code()
const;
172system_error::system_error(error_code code,
const std::string& what)
173:
std::runtime_error(what +
std::
string(
": ") + code.message())
179system_error::system_error(error_code code,
const char *what)
180:
std::runtime_error(what +
std::
string(
": ") + code.message())
186system_error::system_error(error_code code)
187:
std::runtime_error(code.message())
193system_error::system_error(
int value,
194 const error_category& category,
195 const std::string& what)
197 category.message(value))
198, d_code(value, category)
203system_error::system_error(
int value,
204 const error_category& category,
207 category.message(value))
208, d_code(value, category)
213system_error::system_error(
int value,
const error_category& category)
214:
std::runtime_error(category.message(value))
215, d_code(value, category)
221const error_code& system_error::code()
const
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlb_printmethods.h:283
basic_string< char > string
Definition bslstl_string.h:782
Definition bdldfp_decimal.h:5188