A Hopf, Skip and a Jump
Public Member Functions | Public Attributes | List of all members
slidingbuffer::SlidingBufferException Class Reference

The base class for all exceptions thrown by a SlidingBuffer. More...

#include <slidingbuffer.h>

Inheritance diagram for slidingbuffer::SlidingBufferException:
Inheritance graph
[legend]

Public Member Functions

 SlidingBufferException (const char *what, const long int idx)
 Construct an Exception object. More...
 

Public Attributes

const long int index
 The exception was caused by attempting to access this index.
 

Detailed Description

The base class for all exceptions thrown by a SlidingBuffer.

Records the reason for the exception in the parent class and the requested index which caused the exception.

Definition at line 20 of file slidingbuffer.h.

Constructor & Destructor Documentation

◆ SlidingBufferException()

slidingbuffer::SlidingBufferException::SlidingBufferException ( const char *  what,
const long int  idx 
)
inline

Construct an Exception object.

Parameters
whatThe reason for the exception.
idxIndex of requested access which caused the exception.

Definition at line 27 of file slidingbuffer.h.


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