casa::duplError< t > Class Template Reference
[Exceptions]

#include <Error.h>

Inheritance diagram for casa::duplError< t >:

Inheritance graph
[legend]
Collaboration diagram for casa::duplError< t >:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Duplicate key errors where the bad key is returned.

Intended use:

Part of API

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"));

To Do

Definition at line 308 of file Error.h.

Public Member Functions

 ~duplError () throw ()
 Destructor which does nothing.
 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)

Protected Attributes

oKey


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 319 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 310 of file Error.h.


The documentation for this class was generated from the following file:
Generated on Mon Sep 1 22:44:05 2008 for NRAOCASA by  doxygen 1.5.1