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

#include <exceptn.h>

Inheritance diagram for Botan::Exception:
Botan::BearSSL_Error Botan::BigInt::DivideByZero Botan::HTTP::HTTP_Error Botan::Illegal_Point Botan::Illegal_Transformation Botan::Integer_Overflow_Detected Botan::Integrity_Failure Botan::Internal_Error Botan::Invalid_Argument Botan::Invalid_State Botan::Lookup_Error Botan::No_Filesystem_Access Botan::No_Provider_Found Botan::Not_Implemented Botan::OpenSSL_Error Botan::PKCS11::PKCS11_Error Botan::SQL_Database::SQL_DB_Error Botan::Stream_IO_Error Botan::TLS::TLS_Exception Botan::TPM_Error Botan::X509_CRL::X509_CRL_Error Botan_FFI::FFI_Error

Public Member Functions

 Exception (const char *prefix, const std::string &msg)
 
 Exception (const std::string &msg)
 
const char * what () const BOTAN_NOEXCEPT override
 

Detailed Description

Base class for all exceptions thrown by the library

Definition at line 20 of file exceptn.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

Botan::Exception::Exception ( const char *  prefix,
const std::string &  msg 
)

Definition at line 14 of file exceptn.cpp.

14  :
15  m_msg(std::string(prefix) + " " + msg)
16  {}

◆ Exception() [2/2]

Botan::Exception::Exception ( const std::string &  msg)
explicit

Definition at line 11 of file exceptn.cpp.

11  : m_msg(msg)
12  {}

Member Function Documentation

◆ what()

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

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