Quick Links: |
Provide a standard compliant system_error
class.
More...
system_error
class. bsl::system_error | a standard compliant system_error class |
bsl::system_error
, a class used for annotated exception objects about errno
-style errors. In C++11 mode, the vendor-supplied <system_error>
implementation is used instead, and the corresponding names from std
are imported into bsl
. bsl::system_error
to do that. errno
to avoid detecting old problems. errno = 0;
errno
. strtod("1e2000", 0);
errno
was actually set. assert(ERANGE == errno);
bsl::system_error annotated(errno, generic_category(), "1e2000"); assert(strstr(annotated.what(), "1e2000")); assert(static_cast<int>(bsl::errc::result_out_of_range) == annotated.code().value()); assert(&generic_category() == &annotated.code().category());