CoreLinux++  0.4.32
Public Member Functions | Protected Member Functions | List of all members
corelinux::BoundsException Class Reference

BoundsException is a type of StorageException, characterized when access to a storage object is invalid. More...

#include <BoundsException.hpp>

Public Member Functions

 BoundsException (CharCptr why, CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false)
 Default Constructor. More...
 
 BoundsException (CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false)
 Default Constructor. More...
 
 BoundsException (BoundsExceptionCref)
 Copy constructor. More...
 
virtual ~BoundsException (void)
 Virtual Destructor.
 
BoundsExceptionRef operator= (BoundsExceptionCref)
 Assignment operator overload. More...
 
bool operator== (BoundsExceptionCref) const
 Equality operator overload. More...
 
- Public Member Functions inherited from corelinux::StorageException
 StorageException (CharCptr why, CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false)
 Default Constructor. More...
 
 StorageException (CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false)
 Default Constructor. More...
 
 StorageException (StorageExceptionCref)
 Copy constructor. More...
 
virtual ~StorageException (void)
 Virtual Destructor.
 
StorageExceptionRef operator= (StorageExceptionCref)
 Assignment operator overload. More...
 
bool operator== (StorageExceptionCref) const
 Equality operator overload. More...
 
- Public Member Functions inherited from corelinux::Exception
 Exception (CharCptr why, CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false)
 Default Constructor. More...
 
 Exception (ExceptionCref crOther)
 Copy constructor. More...
 
virtual ~Exception (void)
 Virtual Destructor.
 
ExceptionRef operator= (ExceptionCref otherRef)
 Assignment operator overload. More...
 
bool operator== (ExceptionCref otherRef)
 Comparisson operator overload. More...
 
const std::string & getFile (void) const
 Accessor. More...
 
LineNumCref getLine (void) const
 Accessor. More...
 
const std::string & getWhy (void) const
 Accessor. More...
 
const SeveritygetSeverity (void) const
 Accessor. More...
 
const std::string & getUnwind (void) const
 Accessor. More...
 
bool isOutOfMemory (void) const
 Accessor. More...
 
void addUnwindInfo (CharCptr unwindInfo)
 Append unwind information to the Exception. More...
 
void setThreadFatalSeverity (void)
 Change the severity to Severity::THREADFATAL.
 
void setProcessFatalSeverity (void)
 Change the severity to Severity::PROCESSFATAL.
 
void setThreadTerminateSeverity (void)
 Change the severity to Severity::THREADTERMINATE. More...
 
void setProcessTerminateSeverity (void)
 Change the severity to Severity::PROCESSTERMINATE. More...
 

Protected Member Functions

 BoundsException (void)
 BoundsException must have at least a location. More...
 
- Protected Member Functions inherited from corelinux::StorageException
 StorageException (void)
 StorageException must have at least a location. More...
 
- Protected Member Functions inherited from corelinux::Exception
 Exception (void)
 Exceptions must have a reason. More...
 
 Exception (CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false)
 Exception constructor for use by derivations.
 
void setWhy (const std::string &)
 Changes the exception reason.
 
void setWhy (CharCptr)
 Changes the exception reason.
 

Additional Inherited Members

- Public Types inherited from corelinux::Exception
enum  Severity {
  CONTINUABLE = 1, THREADFATAL, PROCESSFATAL, THREADTERMINATE,
  PROCESSTERMINATE
}
 Exception Severity States. More...
 

Detailed Description

BoundsException is a type of StorageException, characterized when access to a storage object is invalid.

Constructor & Destructor Documentation

§ BoundsException() [1/4]

corelinux::BoundsException::BoundsException ( CharCptr  why,
CharCptr  file,
LineNum  line,
Severity  severity = Exception::CONTINUABLE,
bool  outOfMemory = false 
)

Default Constructor.

Parameters
whydescribes why the exception was thrown
fileThe source module throwing the exception
lineThe line of source throwing the exception
severityThe Exception::Severity of the Exception
outOfMemoryAn out of memory indicator

§ BoundsException() [2/4]

corelinux::BoundsException::BoundsException ( CharCptr  file,
LineNum  line,
Severity  severity = Exception::CONTINUABLE,
bool  outOfMemory = false 
)

Default Constructor.

Parameters
fileThe source module throwing the exception
lineThe line of source throwing the exception
severityThe Exception::Severity of the Exception
outOfMemoryAn out of memory indicator

References BoundsException().

§ BoundsException() [3/4]

corelinux::BoundsException::BoundsException ( BoundsExceptionCref  aRef)

Copy constructor.

Parameters
BoundsExceptionconst reference

§ BoundsException() [4/4]

corelinux::BoundsException::BoundsException ( void  )
protected

BoundsException must have at least a location.

Default constructor is not allowed.

Referenced by BoundsException().

Member Function Documentation

§ operator=()

BoundsExceptionRef corelinux::BoundsException::operator= ( BoundsExceptionCref  aRef)

Assignment operator overload.

Parameters
BoundsExceptionconst reference
Returns
BoundsException reference to self

References corelinux::StorageException::operator=().

§ operator==()

bool corelinux::BoundsException::operator== ( BoundsExceptionCref  aRef) const

Equality operator overload.

Parameters
BoundsExceptionconst reference
Returns
true if equal, false otherwise

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

This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium