MAK RTIspy API Documentation for HLA Evolved
 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  The IEEE hereby grants a general, royalty-free license to copy, distribute,
3  display and make derivative works from this material, for all purposes,
4  provided that any use of the material contains the following
5  attribution: "Reprinted with permission from IEEE 1516.1(TM)-2010".
6  Should you require additional information, contact the Manager, Standards
7  Intellectual Property, IEEE Standards Association (stds-ipr@ieee.org).
8 ***********************************************************************/
9 /***********************************************************************
10  IEEE 1516.1 High Level Architecture Interface Specification C++ API
11  File: RTI/exception.h
12 ***********************************************************************/
13 
14 #ifndef RTI_Exception_h
15 #define RTI_Exception_h
16 
17 #include <RTI/SpecificConfig.h>
18 #include <string>
19 
20 // The RTI::exception class follows the interface of the C++ standard exception
21 // class. The key method, what, returns a null terminated character string that
22 // describes details of the exception that has occured.
23 
24 namespace rti1516e
25 {
27  {
28  public:
29  Exception ();
30 
31  Exception (
32  Exception const & rhs);
33 
34  Exception &
35  operator= (
36  Exception const & rhs);
37 
38  virtual
39  ~Exception ();
40  // throw();
41 
42  virtual
43  std::wstring
44  what () const
45  throw() = 0;
46  };
47 
48  // Output operator for Exceptions
49  std::wostream RTI_EXPORT &
51  std::wostream &,
52  Exception const &);
53 
54  #define RTI_EXCEPTION(A) \
55  class RTI_EXPORT A : public Exception \
56  { \
57  public: \
58  A ( \
59  std::wstring const & message) \
60  throw(); \
61  \
62  std::wstring \
63  what () const \
64  throw(); \
65  \
66  private: \
67  std::wstring _msg; \
68  };
69 
70  RTI_EXCEPTION(AlreadyConnected)
71  RTI_EXCEPTION(AsynchronousDeliveryAlreadyDisabled)
72  RTI_EXCEPTION(AsynchronousDeliveryAlreadyEnabled)
73  RTI_EXCEPTION(AttributeAcquisitionWasNotCanceled)
74  RTI_EXCEPTION(AttributeAcquisitionWasNotRequested)
75  RTI_EXCEPTION(AttributeAlreadyBeingAcquired)
76  RTI_EXCEPTION(AttributeAlreadyBeingChanged)
77  RTI_EXCEPTION(AttributeAlreadyBeingDivested)
78  RTI_EXCEPTION(AttributeAlreadyOwned)
79  RTI_EXCEPTION(AttributeDivestitureWasNotRequested)
80  RTI_EXCEPTION(AttributeNotDefined)
81  RTI_EXCEPTION(AttributeNotOwned)
82  RTI_EXCEPTION(AttributeNotPublished)
83  RTI_EXCEPTION(AttributeNotRecognized)
84  RTI_EXCEPTION(AttributeNotSubscribed)
85  RTI_EXCEPTION(AttributeRelevanceAdvisorySwitchIsOff)
86  RTI_EXCEPTION(AttributeRelevanceAdvisorySwitchIsOn)
87  RTI_EXCEPTION(AttributeScopeAdvisorySwitchIsOff)
88  RTI_EXCEPTION(AttributeScopeAdvisorySwitchIsOn)
89  RTI_EXCEPTION(BadInitializationParameter)
90  RTI_EXCEPTION(CallNotAllowedFromWithinCallback)
91  RTI_EXCEPTION(ConnectionFailed)
92  RTI_EXCEPTION(CouldNotCreateLogicalTimeFactory)
93  RTI_EXCEPTION(CouldNotDecode)
94  RTI_EXCEPTION(CouldNotDiscover)
95  RTI_EXCEPTION(CouldNotEncode)
96  RTI_EXCEPTION(CouldNotOpenFDD)
97  RTI_EXCEPTION(CouldNotOpenMIM)
98  RTI_EXCEPTION(CouldNotInitiateRestore)
99  RTI_EXCEPTION(DeletePrivilegeNotHeld)
100  RTI_EXCEPTION(DesignatorIsHLAstandardMIM)
101  RTI_EXCEPTION(RequestForTimeConstrainedPending)
102  RTI_EXCEPTION(NoRequestToEnableTimeConstrainedWasPending)
103  RTI_EXCEPTION(RequestForTimeRegulationPending)
104  RTI_EXCEPTION(NoRequestToEnableTimeRegulationWasPending)
105  RTI_EXCEPTION(NoFederateWillingToAcquireAttribute)
106  RTI_EXCEPTION(ErrorReadingFDD)
107  RTI_EXCEPTION(ErrorReadingMIM)
108  RTI_EXCEPTION(FederateAlreadyExecutionMember)
109  RTI_EXCEPTION(FederateHandleNotKnown)
110  RTI_EXCEPTION(FederateHasNotBegunSave)
111  RTI_EXCEPTION(FederateInternalError)
112  RTI_EXCEPTION(FederateIsExecutionMember)
113  RTI_EXCEPTION(FederateNameAlreadyInUse)
114  RTI_EXCEPTION(FederateNotExecutionMember)
115  RTI_EXCEPTION(FederateOwnsAttributes)
116  RTI_EXCEPTION(FederateServiceInvocationsAreBeingReportedViaMOM)
117  RTI_EXCEPTION(FederateUnableToUseTime)
118  RTI_EXCEPTION(FederatesCurrentlyJoined)
119  RTI_EXCEPTION(FederationExecutionAlreadyExists)
120  RTI_EXCEPTION(FederationExecutionDoesNotExist)
121  RTI_EXCEPTION(IllegalName)
122  RTI_EXCEPTION(IllegalTimeArithmetic)
123  RTI_EXCEPTION(InconsistentFDD)
124  RTI_EXCEPTION(InteractionClassAlreadyBeingChanged)
125  RTI_EXCEPTION(InteractionClassNotDefined)
126  RTI_EXCEPTION(InteractionClassNotPublished)
127  RTI_EXCEPTION(InteractionClassNotRecognized)
128  RTI_EXCEPTION(InteractionClassNotSubscribed)
129  RTI_EXCEPTION(InteractionParameterNotDefined)
130  RTI_EXCEPTION(InteractionParameterNotRecognized)
131  RTI_EXCEPTION(InteractionRelevanceAdvisorySwitchIsOff)
132  RTI_EXCEPTION(InteractionRelevanceAdvisorySwitchIsOn)
133  RTI_EXCEPTION(InTimeAdvancingState)
134  RTI_EXCEPTION(InvalidAttributeHandle)
135  RTI_EXCEPTION(InvalidDimensionHandle)
136  RTI_EXCEPTION(InvalidFederateHandle)
137  RTI_EXCEPTION(InvalidInteractionClassHandle)
138  RTI_EXCEPTION(InvalidLocalSettingsDesignator)
139  RTI_EXCEPTION(InvalidLogicalTime)
140  RTI_EXCEPTION(InvalidLogicalTimeInterval)
141  RTI_EXCEPTION(InvalidLookahead)
142  RTI_EXCEPTION(InvalidObjectClassHandle)
143  RTI_EXCEPTION(InvalidOrderName)
144  RTI_EXCEPTION(InvalidOrderType)
145  RTI_EXCEPTION(InvalidParameterHandle)
146  RTI_EXCEPTION(InvalidRangeBound)
147  RTI_EXCEPTION(InvalidRegion)
148  RTI_EXCEPTION(InvalidResignAction)
149  RTI_EXCEPTION(InvalidRegionContext)
150  RTI_EXCEPTION(InvalidMessageRetractionHandle)
151  RTI_EXCEPTION(InvalidServiceGroup)
152  RTI_EXCEPTION(InvalidTransportationName)
153  RTI_EXCEPTION(InvalidTransportationType)
154  RTI_EXCEPTION(InvalidUpdateRateDesignator)
155  RTI_EXCEPTION(JoinedFederateIsNotInTimeAdvancingState)
156  RTI_EXCEPTION(LogicalTimeAlreadyPassed)
157  RTI_EXCEPTION(MessageCanNoLongerBeRetracted)
158  RTI_EXCEPTION(NameNotFound)
159  RTI_EXCEPTION(NameSetWasEmpty)
160  RTI_EXCEPTION(NoAcquisitionPending)
161  RTI_EXCEPTION(NotConnected)
162  RTI_EXCEPTION(ObjectClassNotDefined)
163  RTI_EXCEPTION(ObjectClassNotKnown)
164  RTI_EXCEPTION(ObjectClassNotPublished)
165  RTI_EXCEPTION(ObjectClassRelevanceAdvisorySwitchIsOff)
166  RTI_EXCEPTION(ObjectClassRelevanceAdvisorySwitchIsOn)
167  RTI_EXCEPTION(ObjectInstanceNameInUse)
168  RTI_EXCEPTION(ObjectInstanceNameNotReserved)
169  RTI_EXCEPTION(ObjectInstanceNotKnown)
170  RTI_EXCEPTION(OwnershipAcquisitionPending)
171  RTI_EXCEPTION(RTIinternalError)
172  RTI_EXCEPTION(RegionDoesNotContainSpecifiedDimension)
173  RTI_EXCEPTION(RegionInUseForUpdateOrSubscription)
174  RTI_EXCEPTION(RegionNotCreatedByThisFederate)
175  RTI_EXCEPTION(RestoreInProgress)
176  RTI_EXCEPTION(RestoreNotInProgress)
177  RTI_EXCEPTION(RestoreNotRequested)
178  RTI_EXCEPTION(SaveInProgress)
179  RTI_EXCEPTION(SaveNotInProgress)
180  RTI_EXCEPTION(SaveNotInitiated)
181  RTI_EXCEPTION(SpecifiedSaveLabelDoesNotExist)
182  RTI_EXCEPTION(SynchronizationPointLabelNotAnnounced)
183  RTI_EXCEPTION(TimeConstrainedAlreadyEnabled)
184  RTI_EXCEPTION(TimeConstrainedIsNotEnabled)
185  RTI_EXCEPTION(TimeRegulationAlreadyEnabled)
186  RTI_EXCEPTION(TimeRegulationIsNotEnabled)
187  RTI_EXCEPTION(UnableToPerformSave)
188  RTI_EXCEPTION(UnknownName)
189  RTI_EXCEPTION(UnsupportedCallbackModel)
190  RTI_EXCEPTION(InternalError)
191  #undef RTI_EXCEPTION
192 }
193 
194 #endif // RTI_exception_h
#define RTI_EXPORT
Definition: SpecificConfig.h:63
#define RTI_EXCEPTION(A)
Definition: Exception.h:54
Definition: Exception.h:26
std::wostream RTI_EXPORT & operator<<(std::wostream &, Exception const &)
This file contains definitions that are used to isolate platform-specific elements of the API...

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)