Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
AlephException Struct Reference

Aleph exception class. More...

#include <aleph-exceptions.H>

Inheritance diagram for AlephException:
[legend]
Collaboration diagram for AlephException:
[legend]

Public Member Functions

 AlephException ()
 
 AlephException (const std::string &category_msg, const size_t line_number, const std::string &file_name, const std::string &type, const std::string &msg)
 

Public Attributes

const size_t line_number = 0
 Line number of source file where the exception was thrown.
 
const std::string file_name = "No defined"
 file name where the exception was thrown
 
const std::string type = "No defined"
 
const std::string msg = "No defined"
 Type name.
 

Protected Attributes

std::string category_msg = "No defined"
 Message describing the error.
 

Static Private Member Functions

static std::string make_what (const std::string &category_msg, size_t line_number, const std::string &file_name, const std::string &type, const std::string &msg)
 

Detailed Description

Aleph exception class.

Author
Leandro Rabindranath Leon
Note
This class is not intended for public use. Instead use the macro DEFINE_ALEPH_EXCEPTION

Definition at line 95 of file aleph-exceptions.H.

Constructor & Destructor Documentation

◆ AlephException() [1/2]

AlephException::AlephException ( )
inline

Definition at line 126 of file aleph-exceptions.H.

◆ AlephException() [2/2]

AlephException::AlephException ( const std::string &  category_msg,
const size_t  line_number,
const std::string &  file_name,
const std::string &  type,
const std::string &  msg 
)
inline

Definition at line 128 of file aleph-exceptions.H.

Member Function Documentation

◆ make_what()

static std::string AlephException::make_what ( const std::string &  category_msg,
size_t  line_number,
const std::string &  file_name,
const std::string &  type,
const std::string &  msg 
)
inlinestaticprivate

Definition at line 112 of file aleph-exceptions.H.

References category_msg, file_name, line_number, msg, and type.

Member Data Documentation

◆ category_msg

std::string AlephException::category_msg = "No defined"
protected

Message describing the error.

Definition at line 108 of file aleph-exceptions.H.

Referenced by make_what().

◆ file_name

const std::string AlephException::file_name = "No defined"

file name where the exception was thrown

Definition at line 101 of file aleph-exceptions.H.

Referenced by make_what().

◆ line_number

const size_t AlephException::line_number = 0

Line number of source file where the exception was thrown.

Definition at line 98 of file aleph-exceptions.H.

Referenced by make_what().

◆ msg

const std::string AlephException::msg = "No defined"

Type name.

Definition at line 104 of file aleph-exceptions.H.

Referenced by make_what().

◆ type

const std::string AlephException::type = "No defined"

Definition at line 103 of file aleph-exceptions.H.

Referenced by make_what().


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