DCL 4.0
Loading...
Searching...
No Matches
InvalidIndexException Class Reference

#include <Exception.h>

Inheritance diagram for InvalidIndexException:
Exception Object

Public Member Functions

 InvalidIndexException (const String &_key)
 InvalidIndexException (ssize_t _minValid, ssize_t _maxValid, size_t _errorValue)
virtual String toString () const
Public Member Functions inherited from Exception
 Exception (Exception *_cause=NULL)
const Exceptioncause () const
String toStringAll () const
virtual void destroy ()
Public Member Functions inherited from Object
String className () const
bool isInstanceOf (const std::type_info &typeinfo) const
virtual const std::type_info & typeInfo () const

Additional Inherited Members

Protected Member Functions inherited from Exception
virtual ~Exception ()
Protected Member Functions inherited from Object
virtual ~Object ()
 Object ()
Protected Attributes inherited from Exception
Exception__pCause

Detailed Description

Definition at line 110 of file Exception.h.

Constructor & Destructor Documentation

◆ InvalidIndexException() [1/2]

InvalidIndexException::InvalidIndexException ( const String & _key)

◆ InvalidIndexException() [2/2]

InvalidIndexException::InvalidIndexException ( ssize_t _minValid,
ssize_t _maxValid,
size_t _errorValue )

Definition at line 209 of file Exception.cpp.

210 : Exception(NULL)
211{
212 __message = String::format(
213 L"invalid index. valud: %d, valid range: %d <= valud <= %d",
214 _errorValue,
215 _minValid,
216 _maxValid
217 );
218}
#define NULL
Definition Config.h:340
Exception(Exception *_cause=NULL)

Member Function Documentation

◆ toString()

String InvalidIndexException::toString ( ) const
virtual

Reimplemented from Exception.

Definition at line 220 of file Exception.cpp.

221{
222 return __message;
223}

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