StandardExceptions::ExcIndexRange Class Reference
[Exceptions and assertions]

Inheritance diagram for StandardExceptions::ExcIndexRange:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ExcIndexRange (const int a1, const int a2, const int a3)
virtual ~ExcIndexRange () throw ()
virtual void print_info (std::ostream &out) const

Private Attributes

const int arg1
const int arg2
const int arg3


Detailed Description

This exception is one of the most often used ones, and indicates that an index is not within the expected range. For example, you might try to access an element of a vector which does not exist.

The constructor takes three int, namely

  1. the violating index
  2. the lower bound
  3. the upper bound plus one

Constructor & Destructor Documentation

StandardExceptions::ExcIndexRange::ExcIndexRange ( const int  a1,
const int  a2,
const int  a3 
) [inline]

virtual StandardExceptions::ExcIndexRange::~ExcIndexRange (  )  throw () [inline, virtual]


Member Function Documentation

virtual void StandardExceptions::ExcIndexRange::print_info ( std::ostream &  out  )  const [inline, virtual]

Print more specific information about the exception which occured. Overload this function in your own exception classes.

Reimplemented from ExceptionBase.


Member Data Documentation


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

deal.II documentation generated on Sat Aug 15 16:52:48 2009 by doxygen 1.5.9