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

#include <excode.hpp>

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

Public Member Functions

 ErrorCode (const Error::Type code, const bool fatal, const std::string &err)
 
const char * what () const noexcept override
 
virtual ~ErrorCode () 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
 

Private Attributes

std::string err_
 

Detailed Description

Definition at line 88 of file excode.hpp.

Constructor & Destructor Documentation

◆ ErrorCode()

openvpn::ErrorCode::ErrorCode ( const Error::Type  code,
const bool  fatal,
const std::string &  err 
)
inline

Definition at line 91 of file excode.hpp.

◆ ~ErrorCode()

virtual openvpn::ErrorCode::~ErrorCode ( )
virtualdefaultnoexcept

Member Function Documentation

◆ what()

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

Definition at line 96 of file excode.hpp.

Member Data Documentation

◆ err_

std::string openvpn::ErrorCode::err_
private

Definition at line 104 of file excode.hpp.


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