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

Duplicate key errors where the bad key is returned. More...

#include <Error.h>

Inheritance diagram for casa::duplError< t >:
casa::DuplError casa::AipsError

List of all members.

Public Member Functions

 duplError (t oI, const Char *str, Category c=BOUNDARY)
 This constructs a "duplError" for the offending key, and an optional character string.
 duplError (t oI, const String &str, Category c=BOUNDARY)
 duplError (t oI, Category c=BOUNDARY)
 ~duplError () throw ()
 Destructor which does nothing.

Protected Attributes

oKey

Detailed Description

template<class t>
class casa::duplError< t >

Duplicate key errors where the bad key is returned.

Intended use:

Public interface

Review Status

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

Synopsis

This template is for generalized duplicate key errors where the template type parameter is the type of the key which caused the error. Because this class is derived from DuplError , the user to catch all duplicate key errors with one catch statement.

Example

throw(duplError<int>(4,"ANY STRING"));

Definition at line 345 of file Error.h.


Constructor & Destructor Documentation

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

This constructs a "duplError" for the offending key, and an optional character string.

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

Definition at line 356 of file Error.h.

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

Destructor which does nothing.


Member Data Documentation

template<class t >
t casa::duplError< t >::oKey [protected]

Definition at line 347 of file Error.h.


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