OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::MbedTLSException Class Reference

#include <error.hpp>

Inheritance diagram for openvpn::MbedTLSException:
[legend]
Collaboration diagram for openvpn::MbedTLSException:
[legend]

Public Member Functions

 MbedTLSException ()
 
 MbedTLSException (const std::string &error_text)
 
 MbedTLSException (const std::string &error_text, const Error::Type code, const bool fatal)
 
 MbedTLSException (const std::string &error_text, const int mbedtls_errnum)
 
const char * what () const noexcept override
 
std::string what_str () const
 
int get_errnum () const
 
virtual ~MbedTLSException () noexcept=default
 
- Public Member Functions inherited from openvpn::ExceptionCode
 ExceptionCode ()
 
 ExceptionCode (const Error::Type code)
 
 ExceptionCode (const Error::Type code, const bool fatal)
 
void set_code (const Error::Type code)
 
void set_code (const Error::Type code, const bool fatal)
 
Error::Type code () const
 
bool fatal () const
 
bool code_defined () const
 
bool is_tls_alert () const
 Some errors may justify letting the underlying SSL library send out TLS alerts.
 
virtual ~ExceptionCode () noexcept=default
 

Static Public Member Functions

static std::string mbedtls_errtext (int errnum)
 
static std::string mbedtls_verify_flags_errtext (const uint32_t flags)
 

Private Attributes

std::string errtxt
 
int errnum
 

Detailed Description

Definition at line 32 of file error.hpp.

Constructor & Destructor Documentation

◆ MbedTLSException() [1/4]

openvpn::MbedTLSException::MbedTLSException ( )
inline

Definition at line 35 of file error.hpp.

◆ MbedTLSException() [2/4]

openvpn::MbedTLSException::MbedTLSException ( const std::string &  error_text)
inlineexplicit

Definition at line 40 of file error.hpp.

◆ MbedTLSException() [3/4]

openvpn::MbedTLSException::MbedTLSException ( const std::string &  error_text,
const Error::Type  code,
const bool  fatal 
)
inlineexplicit

Definition at line 46 of file error.hpp.

◆ MbedTLSException() [4/4]

openvpn::MbedTLSException::MbedTLSException ( const std::string &  error_text,
const int  mbedtls_errnum 
)
inlineexplicit

Definition at line 52 of file error.hpp.

◆ ~MbedTLSException()

virtual openvpn::MbedTLSException::~MbedTLSException ( )
virtualdefaultnoexcept

Member Function Documentation

◆ get_errnum()

int openvpn::MbedTLSException::get_errnum ( ) const
inline

Definition at line 88 of file error.hpp.

◆ mbedtls_errtext()

static std::string openvpn::MbedTLSException::mbedtls_errtext ( int  errnum)
inlinestatic

Definition at line 95 of file error.hpp.

Here is the caller graph for this function:

◆ mbedtls_verify_flags_errtext()

static std::string openvpn::MbedTLSException::mbedtls_verify_flags_errtext ( const uint32_t  flags)
inlinestatic

Definition at line 102 of file error.hpp.

Here is the caller graph for this function:

◆ what()

const char * openvpn::MbedTLSException::what ( ) const
inlineoverridenoexcept

Definition at line 79 of file error.hpp.

◆ what_str()

std::string openvpn::MbedTLSException::what_str ( ) const
inline

Definition at line 83 of file error.hpp.

Member Data Documentation

◆ errnum

int openvpn::MbedTLSException::errnum
private

Definition at line 136 of file error.hpp.

◆ errtxt

std::string openvpn::MbedTLSException::errtxt
private

Definition at line 135 of file error.hpp.


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