ctexceptions.h File Reference

Definitions for the classes that are thrown when Cantera experiences an error condition (also contains errorhandling module text - see Error Handling). More...

#include <string>
#include <exception>
Include dependency graph for ctexceptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CanteraError
 Base class for exceptions thrown by Cantera classes. More...
class  ArraySizeError
 Array size error. More...
class  ElementRangeError
 An element index is out of range. More...

Namespaces

namespace  Cantera
 

Namespace for the Cantera kernel.


Defines

#define XSTR_TRACE_LINE(s)   STR_TRACE_LINE(s)
 Provides a line number.
#define STR_TRACE_LINE(s)   #s
 Provides a line number.
#define STR_TRACE   (std::string(__FILE__) + ":" + XSTR_TRACE_LINE(__LINE__))
 Provides a std::string variable containing the file and line number.
#define AssertTrace(expr)   ((expr) ? (void) 0 : throw Cantera::CanteraError(STR_TRACE, std::string("failed assert: ") + #expr))
 Assertion must be true or an error is thrown.
#define AssertThrow(expr, procedure)   ((expr) ? (void) 0 : throw Cantera::CanteraError(procedure, std::string("failed assert: ") + #expr))
 Assertion must be true or an error is thrown.
#define AssertThrowMsg(expr, procedure, message)   ((expr) ? (void) 0 : throw Cantera::CanteraError(procedure + std::string(": at failed assert: \"") + std::string(#expr) + std::string("\""), message))
 Assertion must be true or an error is thrown.

Functions

void deprecatedMethod (std::string classnm, std::string oldnm, std::string newnm)
 Print a warning when a deprecated method is called.
void removeAtVersion (std::string func, std::string version)
 Throw an error condition for a procedure that has been removed.

Detailed Description

Definitions for the classes that are thrown when Cantera experiences an error condition (also contains errorhandling module text - see Error Handling).

Definition in file ctexceptions.h.


Define Documentation

#define STR_TRACE   (std::string(__FILE__) + ":" + XSTR_TRACE_LINE(__LINE__))

Provides a std::string variable containing the file and line number.

This is a std:string containing the file name and the line number

Definition at line 180 of file ctexceptions.h.

#define STR_TRACE_LINE (  )     #s

Provides a line number.

Definition at line 174 of file ctexceptions.h.

#define XSTR_TRACE_LINE (  )     STR_TRACE_LINE(s)

Provides a line number.

Definition at line 171 of file ctexceptions.h.

Generated by  doxygen 1.6.3