BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsl::system_error Class Reference

#include <bslstl_systemerror.h>

Inheritance diagram for bsl::system_error:

Detailed Description

This class represents exceptions that have an associated error code.

See bslstl_systemerror

Public Member Functions

 system_error (error_code code, const std::string &what)
 
 system_error (error_code code, const char *what)
 
 system_error (error_code code)
 
 system_error (int value, const error_category &category, const std::string &what)
 
 system_error (int value, const error_category &category, const char *what)
 
 system_error (int value, const error_category &category)
 
const error_codecode () const
 

Constructor & Destructor Documentation

◆ system_error() [1/6]

bsl::system_error::system_error ( error_code  code,
const std::string &  what 
)
inline

Create an object of this type holding the specified code. Optionally specify a string what to be added to the description of this object.

◆ system_error() [2/6]

bsl::system_error::system_error ( error_code  code,
const char *  what 
)
inline

◆ system_error() [3/6]

bsl::system_error::system_error ( error_code  code)
inline

◆ system_error() [4/6]

bsl::system_error::system_error ( int  value,
const error_category category,
const std::string &  what 
)
inline

Create an object of this type holding an error code holding the specified value and category. Optionally specify a string what to be added to the description of this object.

◆ system_error() [5/6]

bsl::system_error::system_error ( int  value,
const error_category category,
const char *  what 
)
inline

◆ system_error() [6/6]

bsl::system_error::system_error ( int  value,
const error_category category 
)
inline

Member Function Documentation

◆ code()

const error_code & bsl::system_error::code ( ) const
inline

Return a const reference to the error code held by this object.


The documentation for this class was generated from the following file: