rili::ComplexException Class Reference
Inheritance diagram for rili::ComplexException:
[legend]
Collaboration diagram for rili::ComplexException:
[legend]

Public Types

typedef std::list< std::exception_ptr > Exceptions
 
typedef Exceptions::const_iterator const_iterator
 
typedef Exceptions::size_type size_type
 

Public Member Functions

const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
bool empty () const noexcept
 
size_type size () const noexcept
 
 ComplexException (const std::string &place, std::string const &msg) noexcept
 
void addException (std::exception_ptr const &) noexcept
 

Member Typedef Documentation

typedef Exceptions::const_iterator rili::ComplexException::const_iterator

interator type for stored exceptions

typedef std::list<std::exception_ptr> rili::ComplexException::Exceptions

container type used to store exceptions

typedef Exceptions::size_type rili::ComplexException::size_type

size type of stored exceptions

Constructor & Destructor Documentation

rili::ComplexException::ComplexException ( const std::string &  place,
std::string const &  msg 
)
noexcept

initialize exception using place of occurence and human readable reason message

Parameters
placeused to indicate exact place in code where exception was created
msgused to indicate reason of exception

Member Function Documentation

void rili::ComplexException::addException ( std::exception_ptr const &  )
noexcept

addException add exception at end of exceptions trace storage.

const_iterator rili::ComplexException::begin ( ) const
noexcept

begin can be used to get iterator for first stored exception.

Returns
Returns an iterator to the first stored exception. If the container is empty, the returned iterator will be equal to end().
bool rili::ComplexException::empty ( ) const
noexcept

empty checks there are no stored excaptions, i.e. whether begin() == end().

Returns
true if the there are no stored exceptions, false otherwise
const_iterator rili::ComplexException::end ( ) const
noexcept

end can be used to detect end of stored exceptions collection

Returns
an iterator to the element following the last element of the exceptions collection.
size_type rili::ComplexException::size ( ) const
noexcept

size returns the number of stored exceptions, i.e. std::distance(begin(), end())

Returns
number of stored exceptions

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