SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::exception_t Class Reference

The base class for all SObjectizer exceptions. More...

#include <exception.hpp>

Inheritance diagram for so_5::exception_t:

Public Member Functions

 exception_t (const std::string &error_descr, int error_code)
 
 exception_t (const exception_t &)=default
 
 exception_t (exception_t &&)=default
 
exception_toperator= (exception_t &o)=default
 
exception_toperator= (exception_t &&o) noexcept=default
 
int error_code () const noexcept
 Error code getter.
 

Static Public Member Functions

static void raise (const char *file_name, unsigned int line_number, std::string_view error_descr, int error_code)
 

Private Attributes

int m_error_code
 Error code.
 

Detailed Description

The base class for all SObjectizer exceptions.

Examples
so_5/producer_consumer_mchain/main.cpp.

Definition at line 33 of file exception.hpp.

Constructor & Destructor Documentation

◆ exception_t() [1/3]

so_5::exception_t::exception_t ( const std::string & error_descr,
int error_code )
inline

Definition at line 36 of file exception.hpp.

◆ exception_t() [2/3]

so_5::exception_t::exception_t ( const exception_t & )
default

◆ exception_t() [3/3]

so_5::exception_t::exception_t ( exception_t && )
default

Member Function Documentation

◆ error_code()

int so_5::exception_t::error_code ( ) const
inlinenoexcept

Error code getter.

Definition at line 53 of file exception.hpp.

◆ operator=() [1/2]

exception_t & so_5::exception_t::operator= ( exception_t && o)
defaultnoexcept

◆ operator=() [2/2]

exception_t & so_5::exception_t::operator= ( exception_t & o)
default

◆ raise()

void so_5::exception_t::raise ( const char * file_name,
unsigned int line_number,
std::string_view error_descr,
int error_code )
static

Definition at line 17 of file exception.cpp.

Member Data Documentation

◆ m_error_code

int so_5::exception_t::m_error_code
private

Error code.

Definition at line 64 of file exception.hpp.


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