AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AException Class Reference

Abstract AUI exception. More...

#include <AUI/Common/AException.h>

Public Member Functions#

 AException (AStacktrace stacktrace)
 
 AException (const AString &message)
 
 AException (const AException &exception)=default
 
 AException (AException &&exception) noexcept=default
 
 AException (const AString &message, std::exception_ptr causedBy, AStacktrace stacktrace=AStacktrace::capture(2))
 
virtual AString getMessage () const noexcept
 
const char * what () const noexcept override
 
const AStacktracestacktrace () const noexcept
 
const std::exception_ptr & causedBy () const noexcept
 

Detailed Description#

Unlike std::exception, AException is capable to capture stack traces and efficiently output them to std::ostream. Also exception nesting is possible (via causedBy()).

Examples
examples/7guis/cells/src/AST.cpp, examples/7guis/cells/src/Formula.cpp, examples/7guis/cells/src/Functions.cpp, examples/7guis/cells/src/Spreadsheet.h, examples/7guis/cells/src/Tokens.cpp, and examples/ui/views/src/ExampleWindow.cpp.