Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
DefaultFaultInterceptor.h
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef _Stroika_Framework_WebServer_DefaultFaultInterceptor_h_
5#define _Stroika_Framework_WebServer_DefaultFaultInterceptor_h_ 1
6
7#include "Stroika/Frameworks/StroikaPreComp.h"
8
9#include "Stroika/Frameworks/WebServer/Interceptor.h"
10
11/*
12 * \note Code-Status: <a href="Code-Status.md#Alpha">Alpha</a>
13 */
14
16
17 using namespace Stroika::Foundation;
18
19 /**
20 */
21 class DefaultFaultInterceptor : public Interceptor {
22 private:
23 using inherited = Interceptor;
24
25 public:
26 DefaultFaultInterceptor ();
27 DefaultFaultInterceptor (const function<void (Message&, const exception_ptr&)>& handleFault);
28 [[deprecated ("Since Stroika v3.0d12 use Message&")]] DefaultFaultInterceptor (const function<void (Message*, const exception_ptr&)>& handleFault);
29
30 private:
31 struct Rep_;
32 struct Rep_Explicit_;
33 };
34
35}
36
37/*
38 ********************************************************************************
39 ***************************** Implementation Details ***************************
40 ********************************************************************************
41 */
42#include "DefaultFaultInterceptor.inl"
43
44#endif /*_Stroika_Framework_WebServer_DefaultFaultInterceptor_h_*/