casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
casa::AllocError Class Reference

Allocation errors. More...

#include <Error.h>

Inheritance diagram for casa::AllocError:
casa::AipsError

List of all members.

Public Member Functions

 AllocError (const Char *str, uInt sze)
 This constructor takes the error message and the failed allocation size.
 AllocError (const String &str, uInt sze)
size_t size () const
 This function returns the failed allocation size.
 ~AllocError () throw ()
 Destructor which does nothing.

Protected Attributes

size_t Size

Detailed Description

Allocation errors.

Intended use:

Public interface

Review Status

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

Synopsis

This class is used for allocation errors. It adds an extra data item, the failed allocation size. Otherwise much the same as AipsError.

Example

        throw(AllocError("ANY STRING",1024));

Definition at line 175 of file Error.h.


Constructor & Destructor Documentation

casa::AllocError::AllocError ( const Char str,
uInt  sze 
) [inline]

This constructor takes the error message and the failed allocation size.

Definition at line 184 of file Error.h.

casa::AllocError::AllocError ( const String str,
uInt  sze 
) [inline]

Definition at line 185 of file Error.h.

Destructor which does nothing.


Member Function Documentation

size_t casa::AllocError::size ( ) const [inline]

This function returns the failed allocation size.

Definition at line 191 of file Error.h.


Member Data Documentation

size_t casa::AllocError::Size [protected]

Definition at line 177 of file Error.h.


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