Stroika Library 3.0d25
 
Loading...
Searching...
No Matches
Stroika::Foundation::Execution::TimeOutException Class Reference

#include <TimeOutException.h>

Inheritance diagram for Stroika::Foundation::Execution::TimeOutException:
Stroika::Foundation::Execution::SystemErrorException Stroika::Foundation::Execution::Exception< system_error > Stroika::Foundation::Execution::ExceptionStringHelper

Additional Inherited Members

- Public Member Functions inherited from Stroika::Foundation::Execution::Exception< system_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< system_error >
 Exception (const Characters::String &reasonForError, BASE_EXCEPTION_ARGS... baseExceptionArgs)
 
- Protected Member Functions inherited from Stroika::Foundation::Execution::ExceptionStringHelper
nonvirtual const char * _PeekAtNarrowSDKString () const
 

Detailed Description

catch (const system_error& e) {
if (Execution::IsA (e, errc::timed_out)) { ... }
}
bool IsA(const error_code &ec, error_condition cond) noexcept
Does this error MEAN the given condition - regardless of how it happens to be represented?

That also matches timeouts raised outside Stroika, which catching by type never did.

Note
Nothing throws this type: ThrowError (errc::timed_out) throws a plain SystemErrorException. So a catch (const TimeOutException&) never fires - its deprecation warning is the cue to replace it with the test above.

Definition at line 55 of file TimeOutException.h.


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