Zero  0.1.0
Public Member Functions | Protected Attributes | List of all members
zero::hashtable_deque::HashtableDequeException< key_type, invalid_key > Class Template Reference

Exception thrown in HashtableDeque. More...

#include <hashtable_deque_exceptions.hpp>

Inheritance diagram for zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >:
zero::hashtable_deque::HashtableDequeAlreadyAtTheBackException< key_type, invalid_key > zero::hashtable_deque::HashtableDequeAlreadyAtTheFrontException< key_type, invalid_key > zero::hashtable_deque::HashtableDequeAlreadyContainsException< key_type, invalid_key > zero::hashtable_deque::HashtableDequeEmptyException< key_type, invalid_key > zero::hashtable_deque::HashtableDequeNotContainedException< key_type, invalid_key >

Public Member Functions

 HashtableDequeException (const uint64_t &size, const key_type &back, const key_type &front)
 Constructor of an exception thrown in HashtableDeque. More...
 
const char * what () const noexcept override
 What caused the exception happened? More...
 
virtual const char * details () const noexcept
 Details about the exceptional state. More...
 

Protected Attributes

const uint64_t _size
 The size of the HashtableDeque. More...
 
const key_type _back
 The back of the HashtableDeque. More...
 
const key_type _front
 The front of the HashtableDeque. More...
 

Detailed Description

template<class key_type, key_type invalid_key>
class zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >

Exception thrown in HashtableDeque.

Represents an arbitrary exception that can be thrown in instances of HashtableDeque . Every exception that is specific for the HashtableDeque have to inherit from this class.

Template Parameters
key_typeThe key type of the corresponding HashtableDeque .
invalid_keyThe invalid key used in the corresponding HashtableDeque .
Author
Max Gilbert

Constructor & Destructor Documentation

§ HashtableDequeException()

template<class key_type , key_type invalid_key>
zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >::HashtableDequeException ( const uint64_t &  size,
const key_type &  back,
const key_type &  front 
)
inline

Constructor of an exception thrown in HashtableDeque.

This constructor instantiates an HashtableDequeException with all its variables.

Parameters
sizeSee _size .
backSee _back .
frontSee _front .

Member Function Documentation

§ details()

template<class key_type , key_type invalid_key>
zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >::details ( ) const
inlinevirtualnoexcept

Details about the exceptional state.

Returns all known details of the state that caused this exception to be thrown.

Returns
A description about the state that caused this exception to be thrown.

§ what()

template<class key_type , key_type invalid_key>
zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >::what ( ) const
inlineoverridenoexcept

What caused the exception happened?

Returns description about what caused this exception to be thrown.

Returns
A description about what caused this exception to be thrown.

Member Data Documentation

§ _back

template<class key_type , key_type invalid_key>
zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >::_back
protected

The back of the HashtableDeque.

The value of the back of the HashtableDeque where this exception was thrown at the time when this exception happened.

§ _front

template<class key_type , key_type invalid_key>
zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >::_front
protected

The front of the HashtableDeque.

The value of the front of the HashtableDeque where this exception was thrown at the time when this exception happened.

§ _size

template<class key_type , key_type invalid_key>
zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >::_size
protected

The size of the HashtableDeque.

The number of entries of the HashtableDeque where this exception was thrown at the time when this exception happened.


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