Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   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
ErrorRange Class Reference

Error class for index range checking errors. More...

#include <error.hpp>

Inheritance diagram for ErrorRange:
Error ExceptionTracer

Public Member Functions

 ErrorRange (const ErrorLocation &loc, uint32_t i, uint32_t n, uint32_t j, uint32_t m)
 Constructor for error message for two dimensional indexing error. More...
 
 ErrorRange (const ErrorLocation &loc, uint32_t i, uint32_t n)
 Constructor for error message for one dimensional indexing error. More...
 
 ErrorRange (const ErrorLocation &loc, uint32_t i, uint32_t n, const std::string &str)
 Constructor for error message for one dimensional indexing error. More...
 
 ErrorRange (const ErrorLocation &loc, const std::string &str)
 Constructor for error message for indexing error. More...
 
- Public Member Functions inherited from Error
 Error ()
 Default constructor for error class. More...
 
 Error (const std::string &str)
 Constructor for error class with error message. More...
 
 Error (const ErrorLocation &loc)
 Constructor for error class with location information. More...
 
 Error (const ErrorLocation &loc, const std::string &str)
 Constructor for error class with location information and error message. More...
 
std::string get_error_message (void)
 Return error message. More...
 
void print_error_message (std::ostream &os, bool traceprint=true)
 Print a standard error message to os. More...
 
- 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. More...
 
void print_trace (std::ostream &os)
 Print the backtrace to os. More...
 

Additional Inherited Members

- Protected Attributes inherited from Error
std::string _error_str
 

Detailed Description

Error class for index range checking errors.

Constructor & Destructor Documentation

◆ ErrorRange() [1/4]

ErrorRange::ErrorRange ( const ErrorLocation loc,
uint32_t  i,
uint32_t  n,
uint32_t  j,
uint32_t  m 
)

Constructor for error message for two dimensional indexing error.

The index i is supposed to be smaller than n and j smaller than m.

◆ ErrorRange() [2/4]

ErrorRange::ErrorRange ( const ErrorLocation loc,
uint32_t  i,
uint32_t  n 
)

Constructor for error message for one dimensional indexing error.

The index i is supposed to be smaller than n.

◆ ErrorRange() [3/4]

ErrorRange::ErrorRange ( const ErrorLocation loc,
uint32_t  i,
uint32_t  n,
const std::string &  str 
)

Constructor for error message for one dimensional indexing error.

The index i is supposed to be smaller than n. Additional message string.

◆ ErrorRange() [4/4]

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

Constructor for error message for indexing error.


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


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.