NGen
Loading...
Searching...
No Matches
models::bmi::protocols::ProtocolError Class Reference

#include <protocol.hpp>

+ Inheritance diagram for models::bmi::protocols::ProtocolError:
+ Collaboration diagram for models::bmi::protocols::ProtocolError:

Public Member Functions

 ProtocolError ()=delete
 
 ProtocolError (Error err, const std::string &message="")
 
 ProtocolError (const ProtocolError &other)=default
 
 ProtocolError (ProtocolError &&other) noexcept=default
 
ProtocolErroroperator= (const ProtocolError &other)=default
 
ProtocolErroroperator= (ProtocolError &&other) noexcept=default
 
 ~ProtocolError ()=default
 
auto to_string () const -> std::string
 
auto error_code () const -> const Error &
 
auto get_message () const -> const std::string &
 
char const * what () const noexcept override
 

Private Attributes

Error err
 
std::string message
 

Constructor & Destructor Documentation

◆ ProtocolError() [1/4]

models::bmi::protocols::ProtocolError::ProtocolError ( )
delete

◆ ProtocolError() [2/4]

models::bmi::protocols::ProtocolError::ProtocolError ( Error err,
const std::string & message = "" )
inline

◆ ProtocolError() [3/4]

models::bmi::protocols::ProtocolError::ProtocolError ( const ProtocolError & other)
default

◆ ProtocolError() [4/4]

models::bmi::protocols::ProtocolError::ProtocolError ( ProtocolError && other)
defaultnoexcept

◆ ~ProtocolError()

models::bmi::protocols::ProtocolError::~ProtocolError ( )
default

Member Function Documentation

◆ error_code()

auto models::bmi::protocols::ProtocolError::error_code ( ) const -> const Error&
inline

References err.

◆ get_message()

auto models::bmi::protocols::ProtocolError::get_message ( ) const -> const std::string&
inline

References message.

◆ operator=() [1/2]

ProtocolError & models::bmi::protocols::ProtocolError::operator= ( const ProtocolError & other)
default

◆ operator=() [2/2]

ProtocolError & models::bmi::protocols::ProtocolError::operator= ( ProtocolError && other)
defaultnoexcept

◆ to_string()

◆ what()

char const * models::bmi::protocols::ProtocolError::what ( ) const
inlineoverridenoexcept

References message, and to_string().

Member Data Documentation

◆ err

Error models::bmi::protocols::ProtocolError::err
private

Referenced by error_code(), and to_string().

◆ message

std::string models::bmi::protocols::ProtocolError::message
mutableprivate

Referenced by get_message(), to_string(), and what().


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