Vault  4.1
Public Member Functions
VRangeException Class Reference

VRangeException is a VException that indicates that a value is outside the valid range of data. More...

#include <vexception.h>

Inheritance diagram for VRangeException:
VException

List of all members.

Public Member Functions

 VRangeException (const char *errorMessage, bool recordStackTrace=true)
 Constructs the exception with an error message.
 VRangeException (const VString &errorString, bool recordStackTrace=true)
 Constructs the exception with default error code and VString message.
virtual ~VRangeException () throw ()
 Destructor.

Detailed Description

VRangeException is a VException that indicates that a value is outside the valid range of data.

For example, when you instantiate a VDate or call its set() function with a bad month or day value, it will throw a VRangeException rather than asserting.

Definition at line 416 of file vexception.h.


Constructor & Destructor Documentation

VRangeException::VRangeException ( const char *  errorMessage,
bool  recordStackTrace = true 
) [inline]

Constructs the exception with an error message.

Parameters:
errorMessagethe message
recordStackTraceif true, will attempt to collect stack trace into mCallStack

Definition at line 424 of file vexception.h.

VRangeException::VRangeException ( const VString errorString,
bool  recordStackTrace = true 
) [inline]

Constructs the exception with default error code and VString message.

Parameters:
errorStringthe error message
recordStackTraceif true, will attempt to collect stack trace into mCallStack

Definition at line 430 of file vexception.h.


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

Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.