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

#include <exception.hpp>

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

Public Member Functions

 Exception (const std::string &err) noexcept
 
 Exception (std::string &&err) noexcept
 
const char * what () const noexcept override
 
const std::string & err () const noexcept
 
virtual ~Exception () noexcept=default
 
void add_label (const std::string &label)
 
void remove_label (const std::string &label)
 

Private Attributes

std::string err_
 

Detailed Description

Definition at line 37 of file exception.hpp.

Constructor & Destructor Documentation

◆ Exception() [1/2]

openvpn::Exception::Exception ( const std::string &  err)
inlineexplicitnoexcept

Definition at line 40 of file exception.hpp.

◆ Exception() [2/2]

openvpn::Exception::Exception ( std::string &&  err)
inlineexplicitnoexcept

Definition at line 44 of file exception.hpp.

◆ ~Exception()

virtual openvpn::Exception::~Exception ( )
virtualdefaultnoexcept

Member Function Documentation

◆ add_label()

void openvpn::Exception::add_label ( const std::string &  label)
inline

Definition at line 58 of file exception.hpp.

Here is the caller graph for this function:

◆ err()

const std::string & openvpn::Exception::err ( ) const
inlinenoexcept

Definition at line 52 of file exception.hpp.

◆ remove_label()

void openvpn::Exception::remove_label ( const std::string &  label)
inline

Definition at line 63 of file exception.hpp.

Here is the caller graph for this function:

◆ what()

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

Definition at line 48 of file exception.hpp.

Member Data Documentation

◆ err_

std::string openvpn::Exception::err_
private

Definition at line 71 of file exception.hpp.


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