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));
Definition at line 233 of file Error.h.
casacore::AllocError::~AllocError | ( | ) | throw () |
Destructor which does nothing.
size_t casacore::AllocError::size | ( | ) | const [inline] |
size_t casacore::AllocError::Size [protected] |