PStack  2.0
Stack trace printer for MSVC and GCC binaries
base_exception.cpp File Reference

Defines the root of the exception class hierarchy for PSystem. More...

#include "psystem/exception/base_exception.hpp"
#include <cstdarg>
#include <cstdio>
#include <iostream>
#include <psystem/framework/memory.hpp>
Include dependency graph for base_exception.cpp:

Namespaces

 psystem
 Contains the process examination "system" and basic frameworks.
 
 psystem::exception
 All exceptions used by the psystem namespace exist in this namespace.
 

Functions

std::ostream & operator<< (std::ostream &out, psystem::exception::base_exception const &ex) noexcept
 Serialize exception information to an output stream. More...
 

Detailed Description

Defines the root of the exception class hierarchy for PSystem.

Author
Matt Bisson
Date
26 November, 2007 – 5 August, 2014
Since
PSystem 1.0
Version
PSystem 2.0

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
psystem::exception::base_exception const &  ex 
)
noexcept

Serialize exception information to an output stream.

This operator enables trivial output of the exception to a std::ostream instance. The output will be a human-readable string with (at least) the message contained in the exception.

Parameters
[in,out]outThe stream to modify with serialized exception information.
[in]exThe exception to serialize.
Returns
The modified output stream after serialization.