AFLOW
 
Loading...
Searching...
No Matches
aurostd::xerror Class Reference

#include <aurostd_xerror.h>

Public Member Functions

 xerror (const std::string &, const std::string &, const std::string &, int=1)
 
 xerror (const std::string &, const std::string &, const std::stringstream &, int=1)
 
 xerror (const std::string &, const std::stringstream &, const std::stringstream &, int=1)
 
 xerror (const std::string &, const std::stringstream &, const std::string &, int=1)
 
 ~xerror () throw ()
 
std::string what ()
 
int whatCode () const
 
std::string whereFunction ()
 
std::string whereFileName ()
 
std::string buildMessageString ()
 

Private Member Functions

void buildException (const std::string &, const std::string &, const std::string &, const int &)
 
bool codeValid () const
 
std::string error_string () const
 

Private Attributes

int error_code
 
int error_number
 
int error_type
 
std::string file_name
 
std::string function_name
 
std::string error_message
 

Detailed Description

Definition at line 50 of file aurostd_xerror.h.

Constructor & Destructor Documentation

◆ xerror() [1/4]

aurostd::xerror::xerror ( const std::string & filename,
const std::string & function,
const std::string & msg,
int code = 1 )

Definition at line 44 of file aurostd_xerror.cpp.

◆ xerror() [2/4]

aurostd::xerror::xerror ( const std::string & filename,
const std::string & function,
const std::stringstream & msg,
int code = 1 )

Definition at line 48 of file aurostd_xerror.cpp.

◆ xerror() [3/4]

aurostd::xerror::xerror ( const std::string & filename,
const std::stringstream & function,
const std::stringstream & msg,
int code = 1 )

Definition at line 56 of file aurostd_xerror.cpp.

◆ xerror() [4/4]

aurostd::xerror::xerror ( const std::string & filename,
const std::stringstream & function,
const std::string & msg,
int code = 1 )

Definition at line 52 of file aurostd_xerror.cpp.

◆ ~xerror()

aurostd::xerror::~xerror ( )
throw ( )
inline

Definition at line 56 of file aurostd_xerror.h.

Member Function Documentation

◆ what()

std::string aurostd::xerror::what ( )

Definition at line 138 of file aurostd_xerror.cpp.

◆ whatCode()

int aurostd::xerror::whatCode ( ) const
nodiscard

Definition at line 142 of file aurostd_xerror.cpp.

◆ whereFunction()

std::string aurostd::xerror::whereFunction ( )

Definition at line 113 of file aurostd_xerror.cpp.

◆ whereFileName()

std::string aurostd::xerror::whereFileName ( )

Definition at line 117 of file aurostd_xerror.cpp.

◆ buildMessageString()

std::string aurostd::xerror::buildMessageString ( )

Definition at line 98 of file aurostd_xerror.cpp.

◆ buildException()

void aurostd::xerror::buildException ( const std::string & filename,
const std::string & fname,
const std::string & msg,
const int & code )
private

Definition at line 62 of file aurostd_xerror.cpp.

◆ codeValid()

bool aurostd::xerror::codeValid ( ) const
nodiscardprivate

Definition at line 78 of file aurostd_xerror.cpp.

◆ error_string()

std::string aurostd::xerror::error_string ( ) const
nodiscardprivate

Definition at line 121 of file aurostd_xerror.cpp.

Member Data Documentation

◆ error_code

int aurostd::xerror::error_code
private

Definition at line 64 of file aurostd_xerror.h.

◆ error_number

int aurostd::xerror::error_number
private

Definition at line 65 of file aurostd_xerror.h.

◆ error_type

int aurostd::xerror::error_type
private

Definition at line 66 of file aurostd_xerror.h.

◆ file_name

std::string aurostd::xerror::file_name
private

Definition at line 67 of file aurostd_xerror.h.

◆ function_name

std::string aurostd::xerror::function_name
private

Definition at line 68 of file aurostd_xerror.h.

◆ error_message

std::string aurostd::xerror::error_message
private

Definition at line 69 of file aurostd_xerror.h.


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