v0.9.0
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MoFEM::Exceptions::MoFEMException Struct Reference

Exception to catch. More...

#include <include/Exceptions.hpp>

Inheritance diagram for MoFEM::Exceptions::MoFEMException:
[legend]
Collaboration diagram for MoFEM::Exceptions::MoFEMException:
[legend]

Public Member Functions

 MoFEMException (const MoFEMErrorCodes error_code)
 
 MoFEMException (const MoFEMErrorCodes error_code, const char error_message[])
 
const char * what () const throw ()
 

Public Attributes

const int errorCode
 
char errorMessage [255]
 

Protected Member Functions

 MoFEMException (const int error_code)
 

Detailed Description

Exception to catch.

Definition at line 31 of file Exceptions.hpp.

Constructor & Destructor Documentation

◆ MoFEMException() [1/3]

MoFEM::Exceptions::MoFEMException::MoFEMException ( const MoFEMErrorCodes  error_code)

Definition at line 34 of file Exceptions.hpp.

34  : errorCode(error_code) {
35  strcpy(errorMessage, "Huston we have a problem, something is wrong");
36  }

◆ MoFEMException() [2/3]

MoFEM::Exceptions::MoFEMException::MoFEMException ( const MoFEMErrorCodes  error_code,
const char  error_message[] 
)

Definition at line 37 of file Exceptions.hpp.

38  : errorCode(error_code) {
39  strcpy(errorMessage, error_message);
40  }

◆ MoFEMException() [3/3]

MoFEM::Exceptions::MoFEMException::MoFEMException ( const int  error_code)
protected

Definition at line 44 of file Exceptions.hpp.

44  : errorCode(error_code) {
45  strcpy(errorMessage, "Huston we have a problem, something is wrong");
46  }

Member Function Documentation

◆ what()

const char* MoFEM::Exceptions::MoFEMException::what ( ) const
throw (
)

Definition at line 41 of file Exceptions.hpp.

41 { return errorMessage; }

Member Data Documentation

◆ errorCode

const int MoFEM::Exceptions::MoFEMException::errorCode

Definition at line 32 of file Exceptions.hpp.

◆ errorMessage

char MoFEM::Exceptions::MoFEMException::errorMessage[255]

Definition at line 33 of file Exceptions.hpp.


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