Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
RequiredComponentMissingException.cpp
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#include "Stroika/Foundation/StroikaPreComp.h"
5
7
8#include "RequiredComponentMissingException.h"
9
10using namespace Stroika::Foundation;
12using namespace Stroika::Foundation::Execution;
13
14/*
15 ********************************************************************************
16 ********************** RequiredComponentMissingException ***********************
17 ********************************************************************************
18 */
19namespace {
20 String mkMsg_ (const String& component)
21 {
22 String cName = component;
23 if (cName == RequiredComponentMissingException::kPDFViewer) {
24 cName = "PDF Viewer"sv;
25 }
26 else if (cName == RequiredComponentMissingException::kPDFOCXViewer) {
27 cName = "PDF Viewer (OCX)"sv;
28 }
29 return "A required component - {} - is missing, or is out of date"_f(component);
30 }
31}
32RequiredComponentMissingException::RequiredComponentMissingException (const String& component)
33 : Execution::RuntimeErrorException<>{mkMsg_ (component)}
34 , fComponent{component}
35{
36}
String is like std::u32string, except it is much easier to use, often much more space efficient,...
Definition String.h:201