Skip to content

asio::error_code

Class to represent an error code value.

詳細情報

メンバー

error_code()

Default constructor.

asio::error_code::error_code()

error_code()

Construct with specific error code and category.

asio::error_code::error_code(int v, const error_category &c)

引数

  • int v
  • const& c

error_code()

Construct from an error code enum.

asio::error_code::error_code(ErrorEnum e)

引数

  • ErrorEnum e

clear()

Clear the error value to the default.

void asio::error_code::clear()

assign()

Assign a new error value.

void asio::error_code::assign(int v, const error_category &c)

引数

  • int v
  • const& c

value()

Get the error value.

int asio::error_code::value() const

戻り値

int

category()

Get the error category.

const error_category& asio::error_code::category() const

戻り値

const&

message()

Get the message associated with the error.

std::string asio::error_code::message() const

戻り値

std::string

operator unspecified_bool_type()

Operator returns non-null if there is a non-success error code.

asio::error_code::operator unspecified_bool_type() const

operator!()

Operator to test if the error represents success.

bool asio::error_code::operator!() const

戻り値

bool

unspecified_bool_true()

static void asio::error_code::unspecified_bool_true(unspecified_bool_type_t)

引数

  • unspecified_bool_type_t ``