Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.5new_solver
   Version 1.0.5dev
      Class Index
      File List
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads

Basic error class. More...

#include <error.hpp>

Inheritance diagram for Error:
ExceptionTracer ErrorDim ErrorErrno ErrorNoMem ErrorRange ErrorUnimplemented

List of all members.

Public Member Functions

 Error ()
 Default constructor for error class.
 Error (const std::string &str)
 Constructor for error class with error message.
 Error (const ErrorLocation &loc)
 Constructor for error class with location information.
 Error (const ErrorLocation &loc, const std::string &str)
 Constructor for error class with location information and error message.
std::string get_error_message (void)
 Return error message.
void print_error_message (std::ostream &os, bool traceprint=true)
 Print a standard error message to os.

Protected Attributes

std::string _error_str

Detailed Description

Basic error class.


Constructor & Destructor Documentation

Error::Error (  ) 

Default constructor for error class.

Error::Error ( const std::string &  str  ) 

Constructor for error class with error message.

Error::Error ( const ErrorLocation loc  ) 

Constructor for error class with location information.

Error::Error ( const ErrorLocation loc,
const std::string &  str 
)

Constructor for error class with location information and error message.


Member Function Documentation

std::string Error::get_error_message ( void   ) 

Return error message.

void Error::print_error_message ( std::ostream &  os,
bool  traceprint = true 
)

Print a standard error message to os.

Print error message string and the error location is source code. Also prints the exception back trace if print_trace is true.


Member Data Documentation

std::string Error::_error_str [protected]

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


Reference manual for Ion Beam Simulator 1.0.5dev
Generated by Doxygen 1.7.1 on Mon Feb 6 2012 15:07:16.