C++ TargetRTS
Loading...
Searching...
No Matches
RTException.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTException_h__
11#define __RTException_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTExceptionSignal_h__
18#include <RTExceptionSignal.h>
19#endif
20
21#ifndef __RTProtocol_h__
22#include <RTProtocol.h>
23#endif
24
25struct RTTypedValue;
26
31{
34 class Base : public RTProtocol
35 {
36 public:
37 RTS_INLINE Base( void );
38 RTS_INLINE ~Base( void );
39
40 static const RTProtocolDescriptor rt_class;
41
42 enum
43 {
44 rti_arithmeticError = rtiLast_RTProtocol + 1
45 , rti_error
46 , rti_notFoundError
47 , rti_notUnderstoodError
48 , rti_serviceAccessError
49 , rti_streamError
50 , rti_subclassResponsibilityError
51 , rti_timeSliceError
52 , rti_userError
53 };
54
55 RTS_INLINE
56 RTExceptionSignal arithmeticError( void );
57 RTS_INLINE
58 RTExceptionSignal arithmeticError( const RTTypedValue & );
59
60 RTS_INLINE
61 RTExceptionSignal error( void );
62 RTS_INLINE
63 RTExceptionSignal error( const RTTypedValue & );
64
65 RTS_INLINE
66 RTExceptionSignal notFoundError( void );
67 RTS_INLINE
68 RTExceptionSignal notFoundError( const RTTypedValue & );
69
70 RTS_INLINE
71 RTExceptionSignal notUnderstoodError( void );
72 RTS_INLINE
73 RTExceptionSignal notUnderstoodError( const RTTypedValue & );
74
75 RTS_INLINE
76 RTExceptionSignal serviceAccessError( void );
77 RTS_INLINE
78 RTExceptionSignal serviceAccessError( const RTTypedValue & );
79
80 RTS_INLINE
81 RTExceptionSignal streamError( void );
82 RTS_INLINE
83 RTExceptionSignal streamError( const RTTypedValue & );
84
85 RTS_INLINE
86 RTExceptionSignal subclassResponsibilityError( void );
87 RTS_INLINE
88 RTExceptionSignal subclassResponsibilityError( const RTTypedValue & );
89
90 RTS_INLINE
91 RTExceptionSignal timeSliceError( void );
92 RTS_INLINE
93 RTExceptionSignal timeSliceError( const RTTypedValue & );
94
95 RTS_INLINE
96 RTExceptionSignal userError( void );
97 RTS_INLINE
98 RTExceptionSignal userError( const RTTypedValue & );
99
100 protected:
101 enum
102 {
103 rtiLast_Exception = rti_userError
104 };
105
106 private:
107 // unavailable methods
108 Base( const Base & );
109 Base & operator=( const Base & );
110 };
111};
112
113#if RTS_INLINES
114#include <RTException.inl>
115#endif
116
117#endif // __RTException_h__
Represents an exception port through which exception events can be raised.
Definition: RTException.h:35
Represents a general capsule port typed by a protocol which determines the set of events that can be ...
Definition: RTProtocol.h:50
Represents the predefined "Exception" protocol.
Definition: RTException.h:31
Definition: RTExceptionSignal.h:29
Definition: RTProtocolDescriptor.h:40
Encapsulates a data object and its type descriptor.
Definition: RTTypedValue.h:29