Botan  2.11.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::BotanErrorCategory Struct Reference

An error category for errors from Botan (other than TLS alerts) More...

#include <asio_error.h>

Inheritance diagram for Botan::BotanErrorCategory:

Public Member Functions

std::string message (int ev) const override
 
const char * name () const noexcept override
 

Detailed Description

An error category for errors from Botan (other than TLS alerts)

Definition at line 55 of file asio_error.h.

Member Function Documentation

◆ message()

std::string Botan::BotanErrorCategory::message ( int  ev) const
inlineoverride

Definition at line 62 of file asio_error.h.

References Botan::to_string().

63  {
64  return Botan::to_string(static_cast<Botan::ErrorType>(ev));
65  }
std::string to_string(ErrorType type)
Convert an ErrorType to string.
Definition: exceptn.cpp:11

◆ name()

const char* Botan::BotanErrorCategory::name ( ) const
inlineoverridenoexcept

Definition at line 57 of file asio_error.h.

58  {
59  return "asio.botan.tls";
60  }

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