Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
SilentException.h
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef _Stroia_Foundation_Execution_SilentException_h_
5#define _Stroia_Foundation_Execution_SilentException_h_ 1
6
7#include "Stroika/Foundation/StroikaPreComp.h"
8
9#include <exception>
10
12
13 /**
14 * Throw this when an error has already been reported - so that it isn't reported again
15 */
16 class SilentException : public std::exception {
17 public:
18 /**
19 * \note not inline because in the SilentException class, this type is incomplete (sad - as of C++17 limitation).
20 */
21 static const SilentException kThe;
22
23 public:
24 /**
25 * Provide a 'c string' variant of the exception message. Convert the UNICODE
26 * string argument to a narrow-string (multibyte) in the current locale encoding.
27 */
28 virtual const char* what () const noexcept override;
29 };
31
32}
33
34#endif /*_Stroia_Foundation_Execution_SilentException_h_*/
virtual const char * what() const noexcept override