MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Exception.h
Go to the documentation of this file.
1 /***********************************************************************
2  IEEE 1516.1 High Level Architecture Interface Specification C++ API
3  File: RTI/exception.h
4 ***********************************************************************/
5 
6 #ifndef RTI_Exception_h
7 #define RTI_Exception_h
8 
9 #include <RTI/SpecificConfig.h>
10 #include <string>
11 
12 // The RTI::exception class follows the interface of the C++ standard exception
13 // class. The key method, what, returns a null terminated character string that
14 // describes details of the exception that has occured.
15 
16 namespace rti1516
17 {
19  {
20  public:
21  Exception();
22 
23  Exception(Exception const & rhs);
24 
25  Exception &
26  operator=(Exception const & rhs);
27 
28  virtual
29  ~Exception();
30  // throw();
31 
32  virtual
33  std::wstring what() const
34  throw() = 0;
35  };
36 
37  // Output operator for Exceptions
38  std::wostream RTI_EXPORT &
39  operator << (std::wostream &, Exception const &);
40 
41 #define RTI_EXCEPTION(A) \
42  class RTI_EXPORT A : public Exception { \
43  public: \
44  A(std::wstring const & message) throw(); \
45  std::wstring what() const throw(); \
46  private: \
47  std::wstring _msg; \
48  };
49 
50  RTI_EXCEPTION(AsynchronousDeliveryAlreadyDisabled)
51  RTI_EXCEPTION(AsynchronousDeliveryAlreadyEnabled)
52  RTI_EXCEPTION(AttributeAcquisitionWasNotCanceled)
53  RTI_EXCEPTION(AttributeAcquisitionWasNotRequested)
54  RTI_EXCEPTION(AttributeAlreadyBeingAcquired)
55  RTI_EXCEPTION(AttributeAlreadyBeingDivested)
56  RTI_EXCEPTION(AttributeAlreadyOwned)
57  RTI_EXCEPTION(AttributeDivestitureWasNotRequested)
58  RTI_EXCEPTION(AttributeNotDefined)
59  RTI_EXCEPTION(AttributeNotOwned)
60  RTI_EXCEPTION(AttributeNotPublished)
61  RTI_EXCEPTION(AttributeNotRecognized)
62  RTI_EXCEPTION(AttributeNotSubscribed)
63  RTI_EXCEPTION(AttributeRelevanceAdvisorySwitchIsOff)
64  RTI_EXCEPTION(AttributeRelevanceAdvisorySwitchIsOn)
65  RTI_EXCEPTION(AttributeScopeAdvisorySwitchIsOff)
66  RTI_EXCEPTION(AttributeScopeAdvisorySwitchIsOn)
67  RTI_EXCEPTION(BadInitializationParameter)
68  RTI_EXCEPTION(CouldNotCreateLogicalTimeFactory)
69  RTI_EXCEPTION(CouldNotDecode)
70  RTI_EXCEPTION(CouldNotDiscover)
71  RTI_EXCEPTION(CouldNotEncode)
72  RTI_EXCEPTION(CouldNotOpenFDD)
73  RTI_EXCEPTION(CouldNotInitiateRestore)
74  RTI_EXCEPTION(DeletePrivilegeNotHeld)
75  RTI_EXCEPTION(RequestForTimeConstrainedPending)
76  RTI_EXCEPTION(NoRequestToEnableTimeConstrainedWasPending)
77  RTI_EXCEPTION(RequestForTimeRegulationPending)
78  RTI_EXCEPTION(NoRequestToEnableTimeRegulationWasPending)
79  RTI_EXCEPTION(ErrorReadingFDD)
80  RTI_EXCEPTION(FederateAlreadyExecutionMember)
81  RTI_EXCEPTION(FederateHasNotBegunSave)
82  RTI_EXCEPTION(FederateInternalError)
83  RTI_EXCEPTION(FederateNotExecutionMember)
84  RTI_EXCEPTION(FederateOwnsAttributes)
85  RTI_EXCEPTION(FederateServiceInvocationsAreBeingReportedViaMOM)
86  RTI_EXCEPTION(FederateUnableToUseTime)
87  RTI_EXCEPTION(FederatesCurrentlyJoined)
88  RTI_EXCEPTION(FederationExecutionAlreadyExists)
89  RTI_EXCEPTION(FederationExecutionDoesNotExist)
90  RTI_EXCEPTION(IllegalName)
91  RTI_EXCEPTION(IllegalTimeArithmetic)
92  RTI_EXCEPTION(InteractionClassNotDefined)
93  RTI_EXCEPTION(InteractionClassNotPublished)
94  RTI_EXCEPTION(InteractionClassNotRecognized)
95  RTI_EXCEPTION(InteractionClassNotSubscribed)
96  RTI_EXCEPTION(InteractionParameterNotDefined)
97  RTI_EXCEPTION(InteractionParameterNotRecognized)
98  RTI_EXCEPTION(InteractionRelevanceAdvisorySwitchIsOff)
99  RTI_EXCEPTION(InteractionRelevanceAdvisorySwitchIsOn)
100  RTI_EXCEPTION(InTimeAdvancingState)
101  RTI_EXCEPTION(InvalidAttributeHandle)
102  RTI_EXCEPTION(InvalidDimensionHandle)
103  RTI_EXCEPTION(InvalidFederateHandle)
104  RTI_EXCEPTION(InvalidInteractionClassHandle)
105  RTI_EXCEPTION(InvalidLogicalTime)
106  RTI_EXCEPTION(InvalidLogicalTimeInterval)
107  RTI_EXCEPTION(InvalidLookahead)
108  RTI_EXCEPTION(InvalidObjectClassHandle)
109  RTI_EXCEPTION(InvalidOrderName)
110  RTI_EXCEPTION(InvalidOrderType)
111  RTI_EXCEPTION(InvalidParameterHandle)
112  RTI_EXCEPTION(InvalidRangeBound)
113  RTI_EXCEPTION(InvalidRegion)
114  RTI_EXCEPTION(InvalidRegionContext)
115  RTI_EXCEPTION(InvalidRetractionHandle)
116  RTI_EXCEPTION(InvalidServiceGroup)
117  RTI_EXCEPTION(InvalidTransportationName)
118  RTI_EXCEPTION(InvalidTransportationType)
119  RTI_EXCEPTION(JoinedFederateIsNotInTimeAdvancingState)
120  RTI_EXCEPTION(LogicalTimeAlreadyPassed)
121  RTI_EXCEPTION(MessageCanNoLongerBeRetracted)
122  RTI_EXCEPTION(NameNotFound)
123  RTI_EXCEPTION(NoAcquisitionPending)
124  RTI_EXCEPTION(ObjectClassNotDefined)
125  RTI_EXCEPTION(ObjectClassNotKnown)
126  RTI_EXCEPTION(ObjectClassNotPublished)
127  RTI_EXCEPTION(ObjectClassRelevanceAdvisorySwitchIsOff)
128  RTI_EXCEPTION(ObjectClassRelevanceAdvisorySwitchIsOn)
129  RTI_EXCEPTION(ObjectInstanceNameInUse)
130  RTI_EXCEPTION(ObjectInstanceNameNotReserved)
131  RTI_EXCEPTION(ObjectInstanceNotKnown)
132  RTI_EXCEPTION(OwnershipAcquisitionPending)
133  RTI_EXCEPTION(RTIinternalError)
134  RTI_EXCEPTION(RegionDoesNotContainSpecifiedDimension)
135  RTI_EXCEPTION(RegionInUseForUpdateOrSubscription)
136  RTI_EXCEPTION(RegionNotCreatedByThisFederate)
137  RTI_EXCEPTION(RestoreInProgress)
138  RTI_EXCEPTION(RestoreNotRequested)
139  RTI_EXCEPTION(SaveInProgress)
140  RTI_EXCEPTION(SaveNotInitiated)
141  RTI_EXCEPTION(SpecifiedSaveLabelDoesNotExist)
142  RTI_EXCEPTION(SynchronizationPointLabelNotAnnounced)
143  RTI_EXCEPTION(TimeConstrainedAlreadyEnabled)
144  RTI_EXCEPTION(TimeConstrainedIsNotEnabled)
145  RTI_EXCEPTION(TimeRegulationAlreadyEnabled)
146  RTI_EXCEPTION(TimeRegulationIsNotEnabled)
147  RTI_EXCEPTION(UnableToPerformSave)
148  RTI_EXCEPTION(UnknownName)
149  RTI_EXCEPTION(InternalError)
150 #undef RTI_EXCEPTION
151 }
152 
153 #endif // RTI_exception_h
#define RTI_EXPORT
Definition: SpecificConfig.h:55
Definition: Exception.h:18
#define RTI_EXCEPTION(A)
Definition: Exception.h:41
This file contains definitions that are used to isolate platform-specific elements of the API...
std::wostream RTI_EXPORT & operator<<(std::wostream &, Exception const &)

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)