Botan  2.6.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::TLS::TLS_Exception Class Reference

#include <tls_exceptn.h>

Inheritance diagram for Botan::TLS::TLS_Exception:
Botan::Exception Botan::TLS::Unexpected_Message

Public Member Functions

 TLS_Exception (Alert::Type type, const std::string &err_msg="Unknown error")
 
Alert::Type type () const
 
const char * what () const BOTAN_NOEXCEPT override
 

Detailed Description

Exception Base Class

Definition at line 21 of file tls_exceptn.h.

Constructor & Destructor Documentation

◆ TLS_Exception()

Botan::TLS::TLS_Exception::TLS_Exception ( Alert::Type  type,
const std::string &  err_msg = "Unknown error" 
)
inline

Definition at line 26 of file tls_exceptn.h.

27  :
28  Exception(err_msg), m_alert_type(type) {}
Exception(const char *prefix, const std::string &msg)
Definition: exceptn.cpp:14
Alert::Type type() const
Definition: tls_exceptn.h:24

Member Function Documentation

◆ type()

Alert::Type Botan::TLS::TLS_Exception::type ( ) const
inline

Definition at line 24 of file tls_exceptn.h.

Referenced by Botan::TLS::Channel::received_data().

24 { return m_alert_type; }

◆ what()

const char* Botan::Exception::what ( ) const
inlineoverrideinherited

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