casa
$Rev:20696$
|
Allocation errors. More...
#include <Error.h>
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 |
Allocation errors.
Public interface
This class is used for allocation errors. It adds an extra data item, the failed allocation size. Otherwise much the same as AipsError
.
throw(AllocError("ANY STRING",1024));
casa::AllocError::AllocError | ( | const Char * | str, |
uInt | sze | ||
) | [inline] |
casa::AllocError::AllocError | ( | const String & | str, |
uInt | sze | ||
) | [inline] |
casa::AllocError::~AllocError | ( | ) | throw () |
Destructor which does nothing.
size_t casa::AllocError::size | ( | ) | const [inline] |
size_t casa::AllocError::Size [protected] |