throwing_ptr
Smart pointers that throw on dereference if null
Public Member Functions | List of all members
throwing::base_null_ptr_exception Class Reference

Base class thrown upon dereferencing a null shared_ptr. More...

Inheritance diagram for throwing::base_null_ptr_exception:
throwing::null_ptr_exception< T >

Public Member Functions

 base_null_ptr_exception ()
 
virtual std::string what_type () const
 

Detailed Description

Base class thrown upon dereferencing a null shared_ptr.

Use to catch all such errors

Definition at line 21 of file null_ptr_exception.hpp.

Constructor & Destructor Documentation

◆ base_null_ptr_exception()

throwing::base_null_ptr_exception::base_null_ptr_exception ( )
inline

Definition at line 23 of file null_ptr_exception.hpp.

23 : std::logic_error("Dereference of nullptr") {}

Member Function Documentation

◆ what_type()

virtual std::string throwing::base_null_ptr_exception::what_type ( ) const
inlinevirtual

Reimplemented in throwing::null_ptr_exception< T >.

Definition at line 24 of file null_ptr_exception.hpp.

24 { return ""; }

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