Inflection
Morphology Inflection
Loading...
Searching...
No Matches
inflection::exception::IndexOutOfBoundsException Class Reference

Used to indicate that an attempt to access an out of bounds index was made. More...

#include <IndexOutOfBoundsException.hpp>

Inheritance diagram for inflection::exception::IndexOutOfBoundsException:

Public Member Functions

 IndexOutOfBoundsException ()
 IndexOutOfBoundsException (int32_t index)
 IndexOutOfBoundsException (const std::u16string &message)
 ~IndexOutOfBoundsException () override
Public Member Functions inherited from inflection::exception::RuntimeException
 RuntimeException ()
 RuntimeException (const std::u16string &message)
 ~RuntimeException () override
Public Member Functions inherited from inflection::exception::Exception
 Exception ()
 Exception (const std::u16string &message)
 ~Exception () override
Public Member Functions inherited from inflection::exception::Throwable
 Throwable ()
 Throwable (const std::u16string &message)
 ~Throwable () override
const char * what () const noexcept override
virtual const ::std::u16string & getMessage () const noexcept

Detailed Description

Used to indicate that an attempt to access an out of bounds index was made.

This can be thrown in many places.

Definition at line 13 of file IndexOutOfBoundsException.hpp.

Constructor & Destructor Documentation

◆ IndexOutOfBoundsException() [1/3]

inflection::exception::IndexOutOfBoundsException::IndexOutOfBoundsException ( )

Default constructor

◆ IndexOutOfBoundsException() [2/3]

inflection::exception::IndexOutOfBoundsException::IndexOutOfBoundsException ( int32_t index)
explicit

Constructs a new StringIndexOutOfBoundsException with the index that caused the exception to occur.

Parameters
indexThe index that caused the exception to occur.

◆ IndexOutOfBoundsException() [3/3]

inflection::exception::IndexOutOfBoundsException::IndexOutOfBoundsException ( const std::u16string & message)
explicit

Construct an exception with an informative message for debugging purposes.

◆ ~IndexOutOfBoundsException()

inflection::exception::IndexOutOfBoundsException::~IndexOutOfBoundsException ( )
override

Destructor


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