12#ifndef OPENVPN_ERROR_EXCODE_H
13#define OPENVPN_ERROR_EXCODE_H
70 Error::Type
code_ = Error::SUCCESS;
82 const char *
what() const noexcept
override
const char * what() const noexcept override
ErrorCode(const Error::Type code, const bool fatal, const std::string &err)
virtual ~ErrorCode() noexcept=default
bool is_tls_alert() const
Some errors may justify letting the underlying SSL library send out TLS alerts.
virtual ~ExceptionCode() noexcept=default
ExceptionCode(const Error::Type code, const bool fatal)
ExceptionCode(const Error::Type code)
void set_code(const Error::Type code)
void set_code(const Error::Type code, const bool fatal)
bool code_defined() const