Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
Exception Class Reference

Base class for exceptions. More...

#include <Exceptions.h>

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

Public Member Functions

 Exception (const char *message="")
 Create an Exception.
 Exception (const char *message, const int arg)
 Create and Exception with one integer error code.
 Exception (const char *message, const int arg1, const int arg2)
 Create and Exception with two integer error codes.
 Exception (const char *message, const int arg1, const int arg2, const int arg3)
 Create and Exception with three integer error codes.
 Exception (const char *message, const char *arg)
 Create and Exception with one error string.
 Exception (const char *message, const char *arg1, const char *arg2)
 Create and Exception with two error strings.
 Exception (const char *message, const char *arg1, const char *arg2, const char *arg3)
 Create and Exception with three error strings.
 Exception (const char *message, const char *arg1, const int arg2)
 Create and Exception with one integer error code and one error string.
 Exception (const char *message, const char *arg1, const int arg2, const int arg3)
 Create and Exception with two integer error codes and one error string.
 Exception (const char *message, const int arg, const char *file, const int line)
 Create and Exception with one integer error code, a file and a line number.
 Exception (const char *message, const char *arg, const char *file, const int line)
 Create and Exception with one error string, a file and a line number.
virtual ~Exception () throw ()
 Destroy the Exception.
virtual const char * what () const throw ()
 Get the error string.

Protected Attributes

char messageBuffer [MAX_MESSAGE_SIZE]

Static Protected Attributes

static const int MAX_MESSAGE_SIZE = 1025

Detailed Description

Base class for exceptions.

A class for writing exceptions to a buffer that can then be written to either a console or a stream.

Constructor & Destructor Documentation

◆ Exception() [1/11]

lm::Exception::Exception ( const char * message = "")
inline

Create an Exception.

◆ Exception() [2/11]

lm::Exception::Exception ( const char * message,
const int arg )
inline

Create and Exception with one integer error code.

◆ Exception() [3/11]

lm::Exception::Exception ( const char * message,
const int arg1,
const int arg2 )
inline

Create and Exception with two integer error codes.

◆ Exception() [4/11]

lm::Exception::Exception ( const char * message,
const int arg1,
const int arg2,
const int arg3 )
inline

Create and Exception with three integer error codes.

◆ Exception() [5/11]

lm::Exception::Exception ( const char * message,
const char * arg )
inline

Create and Exception with one error string.

◆ Exception() [6/11]

lm::Exception::Exception ( const char * message,
const char * arg1,
const char * arg2 )
inline

Create and Exception with two error strings.

◆ Exception() [7/11]

lm::Exception::Exception ( const char * message,
const char * arg1,
const char * arg2,
const char * arg3 )
inline

Create and Exception with three error strings.

◆ Exception() [8/11]

lm::Exception::Exception ( const char * message,
const char * arg1,
const int arg2 )
inline

Create and Exception with one integer error code and one error string.

◆ Exception() [9/11]

lm::Exception::Exception ( const char * message,
const char * arg1,
const int arg2,
const int arg3 )
inline

Create and Exception with two integer error codes and one error string.

◆ Exception() [10/11]

lm::Exception::Exception ( const char * message,
const int arg,
const char * file,
const int line )
inline

Create and Exception with one integer error code, a file and a line number.

◆ Exception() [11/11]

lm::Exception::Exception ( const char * message,
const char * arg,
const char * file,
const int line )
inline

Create and Exception with one error string, a file and a line number.

◆ ~Exception()

virtual lm::Exception::~Exception ( )
throw ( )
inlinevirtual

Destroy the Exception.

Member Function Documentation

◆ what()

virtual const char * lm::Exception::what ( ) const
throw ( )
inlinevirtual

Get the error string.

Returns
messageBuffer A pointer to the error message

Member Data Documentation

◆ MAX_MESSAGE_SIZE

const int lm::Exception::MAX_MESSAGE_SIZE = 1025
staticprotected

◆ messageBuffer

char lm::Exception::messageBuffer[MAX_MESSAGE_SIZE]
protected

The documentation for this class was generated from the following file:
  • /data2/LM_zls_github/Lattice-Microbes/src/core/Exceptions.h