libfossil
fsl::OOMException Class Reference

Out-of-memory exception. More...

#include "fossil.hpp"

Inheritance diagram for fsl::OOMException:
fsl::Exception

Public Member Functions

 OOMException () throw ()
 Sets the code FSL_RC_OOM and uses no error string (to avoid allocating more memory). More...
 
- Public Member Functions inherited from fsl::Exception
 Exception (Exception const &other) throw ()
 Copies the error message state from other. More...
 
 Exception (int code, std::string const &msg) throw ()
 Sets the error state from the given arguments. More...
 
 Exception (int code) throw ()
 Equivalent to Exception(code, fsl_rc_cstr(code)). More...
 
 Exception () throw ()
 A default-constructed exception with no message string and an error code of FSL_RC_ERROR. More...
 
 Exception (fsl_error &err) throw ()
 Moves err's contents into this object, effectively upgrading it to something we can throw. More...
 
 Exception (fsl_error const *err) throw ()
 Copies err's contents into this object, effectively upgrading it to something we can throw. More...
 
 Exception (int code, char const *fmt,...) throw ()
 Sets the error state from the given code (generally assumed to be a fsl_rc_t value!) and a formatted string, supporting the same formatting options as fsl_appendf() and friends. More...
 
 Exception (int code, char const *fmt, va_list) throw ()
 Equivalent to Exception(code,fmt,...) except that it takes a va_list. More...
 
virtual ~Exception () throw ()
 Cleans up any error string memory. More...
 
int code () const throw ()
 Returns the code passed to the constructor. More...
 
char const * codeString () const throw ()
 Equivalent to fsl_rc_cstr(this->code()). More...
 
char const * messsage () const throw ()
 Alias (for API consistency's sake) for what(). More...
 
 operator fsl_error * () throw ()
 Implicit conversion to simplify some integration with the C APIs. More...
 
 operator fsl_error const * () const throw ()
 Const-correct overload. More...
 
Exceptionoperator= (Exception const &other) throw ()
 Copies the error message state from other. More...
 
virtual char const * what () const throw ()
 Returns the message string provided to the ctor. More...
 

Detailed Description

Out-of-memory exception.

Definition at line 169 of file fossil.hpp.

Constructor & Destructor Documentation

fsl::OOMException::OOMException ( )
throw (
)

Sets the code FSL_RC_OOM and uses no error string (to avoid allocating more memory).


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