Public Member Functions | List of all members
ErrorDim Class Reference

Error class for dimension mismatch errors. More...

#include <error.hpp>

Inheritance diagram for ErrorDim:
Error ExceptionTracer

Public Member Functions

 ErrorDim (const ErrorLocation &loc)
 Constructor for dimension mismatch error with standard error message.
 
 ErrorDim (const ErrorLocation &loc, const std::string &str)
 Constructor for dimension mismatch error with custom error message.
 
- Public Member Functions inherited from Error
 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.
 
- Public Member Functions inherited from ExceptionTracer
 ExceptionTracer ()
 Default constructor for exception tracer. Saves the backtrace of the program at this location for printing it when the error is caught.
 
void print_trace (std::ostream &os)
 Print the backtrace to os.
 

Additional Inherited Members

- Protected Attributes inherited from Error
std::string _error_str
 

Detailed Description

Error class for dimension mismatch errors.

Constructor & Destructor Documentation

ErrorDim::ErrorDim ( const ErrorLocation loc)

Constructor for dimension mismatch error with standard error message.

The error message is "dimension mismatch".

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

Constructor for dimension mismatch error with custom error message.


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