Chemical Data Processing Library C++ API - Version 1.1.1
Public Member Functions | List of all members
CDPL::Base::IndexError Class Reference

Thrown to indicate that an index is out of range. More...

#include <Exceptions.hpp>

+ Inheritance diagram for CDPL::Base::IndexError:

Public Member Functions

 IndexError (const std::string &msg="")
 Constructs an IndexError object with the error message set to msg. More...
 
virtual ~IndexError () throw ()
 Virtual destructor. More...
 
- Public Member Functions inherited from CDPL::Base::RangeError
 RangeError (const std::string &msg="")
 Constructs a RangeError object with the error message set to msg. More...
 
virtual ~RangeError () throw ()
 Virtual destructor. More...
 
- Public Member Functions inherited from CDPL::Base::ValueError
 ValueError (const std::string &msg="")
 Constructs a ValueError object with the error message set to msg. More...
 
virtual ~ValueError () throw ()
 Virtual destructor. More...
 
- Public Member Functions inherited from CDPL::Base::Exception
 Exception (const std::string &msg="")
 Constructs an Exception object with the error message set to msg. More...
 
virtual ~Exception () throw ()
 Virtual destructor. More...
 
const char * what () const throw ()
 Returns the message describing the cause of the exception and/or the location where the error occurred. More...
 

Detailed Description

Thrown to indicate that an index is out of range.

Constructor & Destructor Documentation

◆ IndexError()

CDPL::Base::IndexError::IndexError ( const std::string &  msg = "")

Constructs an IndexError object with the error message set to msg.

Parameters
msgA message describing the cause of the exception and/or the location where the error occurred.

◆ ~IndexError()

virtual CDPL::Base::IndexError::~IndexError ( )
throw (
)
virtual

Virtual destructor.


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