NestedException contains a new higher level error message (typically based on argument basedOnException) and preserves the original exception (which you can use to get its message, with Characters::ToString (fBasedOnException) More...
#include <Exceptions.h>
Additional Inherited Members | |
Public Member Functions inherited from Stroika::Foundation::Execution::Exception< runtime_error > | |
| Exception ()=delete | |
| construct with just a message - BASE_EXCEPTION gets whatever it minimally needs. | |
| virtual const char * | what () const noexcept override |
Public Member Functions inherited from Stroika::Foundation::Execution::ExceptionStringHelper | |
| ExceptionStringHelper ()=delete | |
| activities default to NULLOPT - meaning "not specified" - which is different from "specified,
and there were none". | |
| nonvirtual Characters::String | GetBasicErrorMessage () const |
| nonvirtual Characters::String | GetFullErrorMessage () const |
| nonvirtual optional< Containers::Stack< Activity<> > > | GetActivities () const |
| nonvirtual void | ImbueActivities (const optional< Containers::Stack< Activity<> > > &activities) |
| Set, replace, or clear the activity stack. Any already-computed message text is discarded, since it depends on these. | |
| template<typename T > | |
| nonvirtual T | As () const |
Protected Member Functions inherited from Stroika::Foundation::Execution::Exception< runtime_error > | |
| Exception (const Characters::String &reasonForError, BASE_EXCEPTION_ARGS... baseExceptionArgs) | |
Protected Member Functions inherited from Stroika::Foundation::Execution::ExceptionStringHelper | |
| nonvirtual const char * | _PeekAtNarrowSDKString () const |
NestedException contains a new higher level error message (typically based on argument basedOnException) and preserves the original exception (which you can use to get its message, with Characters::ToString (fBasedOnException)
This also can be used to wrap third-party libraries exceptions, which don't know about 'DeclareActivity' - and incorporating that into an error message.
Definition at line 284 of file Exceptions.h.