WSF
Exception.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11#ifndef L16_EXCEPTION_HPP
12#define L16_EXCEPTION_HPP
13
14#include <exception>
15#include <string>
16
17namespace WsfL16
18{
19namespace Messages
20{
21class Exception : public std::exception
22{
23public:
24 const std::string& GetError() { return mError; }
25 ~Exception() override {}
26
27protected:
28 std::string mError;
29};
30
32{
33public:
34 ReadException(std::string aError);
36};
38{
39public:
41 InterpretException(std::string aError);
42};
43} // namespace Messages
44} // namespace WsfL16
45
46#endif
Definition Exception.hpp:22
~Exception() override
Definition Exception.hpp:25
std::string mError
Definition Exception.hpp:28
const std::string & GetError()
Definition Exception.hpp:24
InterpretException()
Definition Exception.cpp:30
ReadException(std::string aError)
Definition Exception.cpp:20
Definition ComputerPart.hpp:45
This file should be included prior to defining a message. Currently there is a limit of 32 fields per...
Definition AllMessages.hpp:55
Copyrights Multiple, All Rights Reserved