#include <TimeOutException.h>
Public Member Functions | |
TimeOutException () | |
![]() | |
virtual const char * | what () const noexcept override |
![]() | |
ExceptionStringHelper ()=delete | |
nonvirtual Characters::String | GetBasicErrorMessage () const |
nonvirtual Characters::String | GetFullErrorMessage () const |
nonvirtual Containers::Stack< Activity<> > | GetActivities () const |
template<typename T > | |
nonvirtual T | As () const |
Static Public Attributes | |
static const TimeOutException | kThe |
Additional Inherited Members | |
![]() | |
template<typename... BASE_EXCEPTION_ARGS> | |
SystemErrorException (const Characters::String &reasonForError, BASE_EXCEPTION_ARGS... baseExceptionArgs) | |
![]() | |
template<typename... BASE_EXCEPTION_ARGS> | |
Exception (const Characters::String &reasonForError, BASE_EXCEPTION_ARGS... baseExceptionArgs) | |
![]() | |
nonvirtual const char * | _PeekAtNarrowSDKString_ () const |
Throw this when something (typically a waitable event, but could be anything code is waiting for) times out.
and that will work for catching nearly any timeout exception thrown by Stroika, it is often better to use:
since that will catch timeout exceptions thrown by non-Stroika-based components, and this form will still work with Activities and UNICODE exception message handling, if you use Characters::ToString (e); alternatively you can use: catch (const SystemErrorException& e) { if (e.code () == errc::timed_out) { ... } // now directly look at String message and Activies etc... } catch (const system_error& e) { if (e.code () == errc::timed_out) { ... } }
Definition at line 55 of file TimeOutException.h.
TimeOutException::TimeOutException | ( | ) |
when not specified, the error_code defaults to make_error_code (errc::timed_out)
Definition at line 16 of file TimeOutException.cpp.
|
static |
CAN be used when there is no message argument.
Definition at line 69 of file TimeOutException.h.