DCL 3.7.4
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__cause

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 201 of file Exception.cpp.

202 : Exception(NULL)
203{
204 __message = String::format(
205 L"invalid index. valud: %d, valid range: %d <= valud <= %d",
206 _errorValue,
207 _minValid,
208 _maxValid
209 );
210}
#define NULL
Definition Config.h:312
Exception(Exception *_cause=NULL)

Member Function Documentation

◆ toString()

String InvalidIndexException::toString ( ) const
virtual

Reimplemented from Exception.

Definition at line 212 of file Exception.cpp.

213{
214 return __message;
215}

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