SocketStreams v1.11.1
Loading...
Searching...
No Matches
web::exceptions::WebException Class Reference

Network exception. More...

#include <WebException.h>

Inheritance diagram for web::exceptions::WebException:

Public Member Functions

 WebException (int line, std::string_view file)
 
 WebException (const WebException &other)=default
 
 WebException (WebException &&other) noexcept=default
 
WebExceptionoperator= (const WebException &other)=default
 
WebExceptionoperator= (WebException &&other) noexcept=default
 
const char * what () const noexcept override
 
int getErrorCode () const noexcept
 
int getLine () const noexcept
 
std::string_view getFile () const noexcept
 
virtual ~WebException ()=default
 

Protected Attributes

std::string data
 
std::string_view file
 
int errorCode
 
int line
 

Detailed Description

Network exception.

Constructor & Destructor Documentation

◆ WebException() [1/3]

web::exceptions::WebException::WebException ( int line,
std::string_view file )

◆ WebException() [2/3]

web::exceptions::WebException::WebException ( const WebException & other)
default

◆ WebException() [3/3]

web::exceptions::WebException::WebException ( WebException && other)
defaultnoexcept

◆ ~WebException()

virtual web::exceptions::WebException::~WebException ( )
virtualdefault

Member Function Documentation

◆ getErrorCode()

int web::exceptions::WebException::getErrorCode ( ) const
noexcept

◆ getFile()

std::string_view web::exceptions::WebException::getFile ( ) const
noexcept

◆ getLine()

int web::exceptions::WebException::getLine ( ) const
noexcept

◆ operator=() [1/2]

WebException & web::exceptions::WebException::operator= ( const WebException & other)
default

◆ operator=() [2/2]

WebException & web::exceptions::WebException::operator= ( WebException && other)
defaultnoexcept

◆ what()

const char * web::exceptions::WebException::what ( ) const
overridenoexcept

Member Data Documentation

◆ data

std::string web::exceptions::WebException::data
protected

◆ errorCode

int web::exceptions::WebException::errorCode
protected

◆ file

std::string_view web::exceptions::WebException::file
protected

◆ line

int web::exceptions::WebException::line
protected

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