casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
casa::indexError< t > Class Template Reference

Index errors returning the bad index. More...

#include <Error.h>

Inheritance diagram for casa::indexError< t >:
casa::IndexError casa::AipsError

List of all members.

Public Member Functions

 indexError (t oI, const Char *str, Category c=BOUNDARY)
 This constructor takes the error message and the index which cause the error to occur.
 indexError (t oI, const String &str, Category c=BOUNDARY)
 indexError (t oI, Category c=BOUNDARY)
 ~indexError () throw ()
 Destructor which does nothing.

Protected Attributes

oIndex

Detailed Description

template<class t>
class casa::indexError< t >

Index errors returning the bad index.

Intended use:

Public interface

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Synopsis

This class is templated to allow generalalized indexes to be returned with the error message i.e. the class is templated on the index type.

Example

        throw(indexError<int>(3,"ANY STRING"));/

Definition at line 262 of file Error.h.


Constructor & Destructor Documentation

template<class t >
casa::indexError< t >::indexError ( oI,
const Char str,
Category  c = BOUNDARY 
)

This constructor takes the error message and the index which cause the error to occur.

template<class t >
casa::indexError< t >::indexError ( oI,
const String str,
Category  c = BOUNDARY 
)
template<class t >
casa::indexError< t >::indexError ( oI,
Category  c = BOUNDARY 
) [inline]

Definition at line 273 of file Error.h.

template<class t >
casa::indexError< t >::~indexError ( ) throw ()

Destructor which does nothing.


Member Data Documentation

template<class t >
t casa::indexError< t >::oIndex [protected]

Definition at line 264 of file Error.h.


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