zeroc-ice 3.8.0__cp313-cp313-macosx_10_13_universal2.whl → 3.8.0.post1__cp313-cp313-macosx_10_13_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- Ice/BTEndpointType.py +7 -0
- Ice/BTSEndpointType.py +7 -0
- Ice/Blobject.py +1 -1
- Ice/Communicator.py +130 -118
- Ice/CompressBatch.py +12 -12
- Ice/Current.py +5 -6
- Ice/EndpointSelectionType.py +8 -8
- Ice/EventLoopAdapter.py +4 -4
- Ice/Exception.py +6 -8
- Ice/FormatType.py +8 -1
- Ice/Future.py +78 -78
- Ice/IcePyTypes.py +2 -0
- Ice/ImplicitContext.py +28 -35
- Ice/InitializationData.py +23 -22
- Ice/InvocationFuture.py +31 -34
- Ice/LocalException.py +1 -1
- Ice/LocalExceptions.py +82 -94
- Ice/LogMessageType.py +16 -15
- Ice/Logger.py +10 -10
- Ice/Object.py +22 -17
- Ice/ObjectAdapter.py +200 -167
- Ice/ObjectPrx.py +196 -202
- Ice/OperationMode.py +19 -14
- Ice/ProcessLogger.py +18 -2
- Ice/Properties.py +63 -79
- Ice/Proxy.py +73 -10
- Ice/ReplyStatus.py +42 -35
- Ice/SSLEndpointType.py +7 -0
- Ice/ServantLocator.py +30 -35
- Ice/SliceInfo.py +3 -3
- Ice/SlicedData.py +1 -1
- Ice/TCPEndpointType.py +7 -0
- Ice/ToStringMode.py +19 -19
- Ice/UDPEndpointType.py +7 -0
- Ice/URIEndpointType.py +7 -0
- Ice/UnknownSlicedValue.py +11 -3
- Ice/UserException.py +1 -1
- Ice/Util.py +27 -26
- Ice/Value.py +7 -7
- Ice/WSEndpointType.py +7 -0
- Ice/WSSEndpointType.py +7 -0
- Ice/__init__.py +2 -0
- Ice/iAPEndpointType.py +7 -0
- Ice/iAPSEndpointType.py +7 -0
- IceGrid/LoadSample.py +12 -12
- IceGrid/ServerState.py +29 -25
- IcePy-stubs/__init__.pyi +151 -152
- IcePy.cpython-313-darwin.so +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/METADATA +1 -1
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/RECORD +53 -53
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/WHEEL +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/entry_points.txt +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/top_level.txt +0 -0
Ice/LocalExceptions.py
CHANGED
|
@@ -15,8 +15,10 @@ __name__ = "Ice"
|
|
|
15
15
|
|
|
16
16
|
class DispatchException(LocalException):
|
|
17
17
|
"""
|
|
18
|
-
The dispatch failed. This is the base class for local exceptions that can be
|
|
19
|
-
wire".
|
|
18
|
+
The exception that is raised when a dispatch failed. This is the base class for local exceptions that can be
|
|
19
|
+
marshaled and transmitted "over the wire".
|
|
20
|
+
You can raise this exception in the implementation of an operation, or in a middleware.
|
|
21
|
+
The Ice runtime then logically re-raises this exception to the client.
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
24
|
def __init__(self, replyStatus: int | None, msg: str = ""):
|
|
@@ -38,21 +40,21 @@ class DispatchException(LocalException):
|
|
|
38
40
|
self.__replyStatus = replyStatus
|
|
39
41
|
|
|
40
42
|
@property
|
|
41
|
-
def replyStatus(self):
|
|
43
|
+
def replyStatus(self) -> int:
|
|
42
44
|
"""
|
|
43
|
-
|
|
45
|
+
Returns the reply status as an int (see :class:`ReplyStatus`).
|
|
44
46
|
|
|
45
47
|
Returns
|
|
46
48
|
-------
|
|
47
49
|
int
|
|
48
|
-
The reply status
|
|
50
|
+
The reply status.
|
|
49
51
|
"""
|
|
50
52
|
return self.__replyStatus
|
|
51
53
|
|
|
52
54
|
|
|
53
55
|
class RequestFailedException(DispatchException):
|
|
54
56
|
"""
|
|
55
|
-
The base
|
|
57
|
+
The base class for the 3 NotExist exceptions.
|
|
56
58
|
"""
|
|
57
59
|
|
|
58
60
|
def __init__(
|
|
@@ -66,36 +68,36 @@ class RequestFailedException(DispatchException):
|
|
|
66
68
|
@property
|
|
67
69
|
def id(self) -> Identity:
|
|
68
70
|
"""
|
|
69
|
-
|
|
71
|
+
Returns the identity of the Ice Object to which the request was sent.
|
|
70
72
|
|
|
71
73
|
Returns
|
|
72
74
|
-------
|
|
73
75
|
Identity
|
|
74
|
-
The identity
|
|
76
|
+
The identity.
|
|
75
77
|
"""
|
|
76
78
|
return self.__id
|
|
77
79
|
|
|
78
80
|
@property
|
|
79
|
-
def facet(self):
|
|
81
|
+
def facet(self) -> str:
|
|
80
82
|
"""
|
|
81
|
-
|
|
83
|
+
Returns the facet to which the request was sent.
|
|
82
84
|
|
|
83
85
|
Returns
|
|
84
86
|
-------
|
|
85
87
|
str
|
|
86
|
-
The facet
|
|
88
|
+
The facet.
|
|
87
89
|
"""
|
|
88
90
|
return self.__facet
|
|
89
91
|
|
|
90
92
|
@property
|
|
91
|
-
def operation(self):
|
|
93
|
+
def operation(self) -> str:
|
|
92
94
|
"""
|
|
93
|
-
|
|
95
|
+
Returns the operation name of the request.
|
|
94
96
|
|
|
95
97
|
Returns
|
|
96
98
|
-------
|
|
97
99
|
str
|
|
98
|
-
The operation name
|
|
100
|
+
The operation name.
|
|
99
101
|
"""
|
|
100
102
|
return self.__operation
|
|
101
103
|
|
|
@@ -103,7 +105,7 @@ class RequestFailedException(DispatchException):
|
|
|
103
105
|
@final
|
|
104
106
|
class ObjectNotExistException(RequestFailedException):
|
|
105
107
|
"""
|
|
106
|
-
The dispatch could not find a servant for the identity carried by the request.
|
|
108
|
+
The exception that is raised when a dispatch could not find a servant for the identity carried by the request.
|
|
107
109
|
"""
|
|
108
110
|
|
|
109
111
|
def __init__(self, id: Identity | None = None, facet: str = "", operation: str = "", msg: str = ""):
|
|
@@ -113,7 +115,8 @@ class ObjectNotExistException(RequestFailedException):
|
|
|
113
115
|
@final
|
|
114
116
|
class FacetNotExistException(RequestFailedException):
|
|
115
117
|
"""
|
|
116
|
-
The dispatch could not find a servant for the identity + facet carried by the
|
|
118
|
+
The exception that is raised when a dispatch could not find a servant for the identity + facet carried by the
|
|
119
|
+
request.
|
|
117
120
|
"""
|
|
118
121
|
|
|
119
122
|
def __init__(self, id: Identity | None = None, facet: str = "", operation: str = "", msg: str = ""):
|
|
@@ -123,8 +126,9 @@ class FacetNotExistException(RequestFailedException):
|
|
|
123
126
|
@final
|
|
124
127
|
class OperationNotExistException(RequestFailedException):
|
|
125
128
|
"""
|
|
126
|
-
The dispatch could not find the operation carried by the request on the target
|
|
127
|
-
to a mismatch in the Slice definitions, such as the client using Slice
|
|
129
|
+
The exception that is raised when a dispatch could not find the operation carried by the request on the target
|
|
130
|
+
servant. This is typically due to a mismatch in the Slice definitions, such as the client using Slice
|
|
131
|
+
definitions newer than the server's.
|
|
128
132
|
"""
|
|
129
133
|
|
|
130
134
|
def __init__(self, id: Identity | None = None, facet: str = "", operation: str = "", msg: str = ""):
|
|
@@ -133,7 +137,8 @@ class OperationNotExistException(RequestFailedException):
|
|
|
133
137
|
|
|
134
138
|
class UnknownException(DispatchException):
|
|
135
139
|
"""
|
|
136
|
-
The dispatch failed with an exception that is not a LocalException or a
|
|
140
|
+
The exception that is raised when a dispatch failed with an exception that is not a :class:`LocalException` or a
|
|
141
|
+
:class:`UserException`.
|
|
137
142
|
"""
|
|
138
143
|
|
|
139
144
|
def __init__(self, msg: str, replyStatus: int = ReplyStatus.UnknownException.value):
|
|
@@ -143,7 +148,8 @@ class UnknownException(DispatchException):
|
|
|
143
148
|
@final
|
|
144
149
|
class UnknownLocalException(UnknownException):
|
|
145
150
|
"""
|
|
146
|
-
The dispatch failed with LocalException that is not
|
|
151
|
+
The exception that is raised when a dispatch failed with a :class:`LocalException` that is not a
|
|
152
|
+
:class:`DispatchException`.
|
|
147
153
|
"""
|
|
148
154
|
|
|
149
155
|
def __init__(self, msg: str):
|
|
@@ -153,7 +159,8 @@ class UnknownLocalException(UnknownException):
|
|
|
153
159
|
@final
|
|
154
160
|
class UnknownUserException(UnknownException):
|
|
155
161
|
"""
|
|
156
|
-
The
|
|
162
|
+
The exception that is raised when a client receives a :class:`UserException` that was not declared in the
|
|
163
|
+
operation's exception specification.
|
|
157
164
|
"""
|
|
158
165
|
|
|
159
166
|
def __init__(self, msg: str):
|
|
@@ -168,33 +175,32 @@ class UnknownUserException(UnknownException):
|
|
|
168
175
|
|
|
169
176
|
class ProtocolException(LocalException):
|
|
170
177
|
"""
|
|
171
|
-
The base class for Ice protocol
|
|
178
|
+
The base class for exceptions related to the Ice protocol.
|
|
172
179
|
"""
|
|
173
180
|
|
|
174
181
|
|
|
175
182
|
@final
|
|
176
183
|
class CloseConnectionException(ProtocolException):
|
|
177
184
|
"""
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
the client will automatically retry the
|
|
181
|
-
|
|
182
|
-
propagated to the application code.
|
|
185
|
+
The exception that is raised when the connection has been gracefully shut down by the server. The request
|
|
186
|
+
that returned this exception has not been executed by the server. In most cases you will not get this exception,
|
|
187
|
+
because the client will automatically retry the invocation. However, if upon retry the server shuts down the
|
|
188
|
+
connection again, and the retry limit has been reached, then this exception is propagated to the application code.
|
|
183
189
|
"""
|
|
184
190
|
|
|
185
191
|
|
|
186
192
|
@final
|
|
187
193
|
class DatagramLimitException(ProtocolException):
|
|
188
194
|
"""
|
|
189
|
-
|
|
190
|
-
|
|
195
|
+
The exception that is raised when a datagram exceeds the configured send or receive buffer size, or exceeds the
|
|
196
|
+
maximum payload size of a UDP packet (65507 bytes).
|
|
191
197
|
"""
|
|
192
198
|
|
|
193
199
|
|
|
194
200
|
@final
|
|
195
201
|
class MarshalException(ProtocolException):
|
|
196
202
|
"""
|
|
197
|
-
|
|
203
|
+
The exception that is raised when an error occurs during marshaling or unmarshaling.
|
|
198
204
|
"""
|
|
199
205
|
|
|
200
206
|
|
|
@@ -206,28 +212,28 @@ class MarshalException(ProtocolException):
|
|
|
206
212
|
|
|
207
213
|
class TimeoutException(LocalException):
|
|
208
214
|
"""
|
|
209
|
-
|
|
215
|
+
The exception that is raised when a timeout occurs. This is the base class for all timeout exceptions.
|
|
210
216
|
"""
|
|
211
217
|
|
|
212
218
|
|
|
213
219
|
@final
|
|
214
220
|
class ConnectTimeoutException(TimeoutException):
|
|
215
221
|
"""
|
|
216
|
-
|
|
222
|
+
The exception that is raised when a connection establishment times out.
|
|
217
223
|
"""
|
|
218
224
|
|
|
219
225
|
|
|
220
226
|
@final
|
|
221
227
|
class CloseTimeoutException(TimeoutException):
|
|
222
228
|
"""
|
|
223
|
-
|
|
229
|
+
The exception that is raised when a graceful connection closure times out.
|
|
224
230
|
"""
|
|
225
231
|
|
|
226
232
|
|
|
227
233
|
@final
|
|
228
234
|
class InvocationTimeoutException(TimeoutException):
|
|
229
235
|
"""
|
|
230
|
-
|
|
236
|
+
The exception that is raised when an invocation times out.
|
|
231
237
|
"""
|
|
232
238
|
|
|
233
239
|
|
|
@@ -239,14 +245,14 @@ class InvocationTimeoutException(TimeoutException):
|
|
|
239
245
|
|
|
240
246
|
class SyscallException(LocalException):
|
|
241
247
|
"""
|
|
242
|
-
|
|
248
|
+
The exception that is raised to report the failure of a system call.
|
|
243
249
|
"""
|
|
244
250
|
|
|
245
251
|
|
|
246
252
|
@final
|
|
247
253
|
class DNSException(SyscallException):
|
|
248
254
|
"""
|
|
249
|
-
|
|
255
|
+
The exception that is raised to report a DNS resolution failure.
|
|
250
256
|
"""
|
|
251
257
|
|
|
252
258
|
|
|
@@ -258,27 +264,27 @@ class DNSException(SyscallException):
|
|
|
258
264
|
|
|
259
265
|
class SocketException(SyscallException):
|
|
260
266
|
"""
|
|
261
|
-
|
|
267
|
+
The exception that is raised to report a socket error.
|
|
262
268
|
"""
|
|
263
269
|
|
|
264
270
|
|
|
265
271
|
class ConnectFailedException(SocketException):
|
|
266
272
|
"""
|
|
267
|
-
|
|
273
|
+
The exception that is raised when a connection establishment fails.
|
|
268
274
|
"""
|
|
269
275
|
|
|
270
276
|
|
|
271
277
|
@final
|
|
272
278
|
class ConnectionLostException(SocketException):
|
|
273
279
|
"""
|
|
274
|
-
|
|
280
|
+
The exception that is raised when an established connection is lost.
|
|
275
281
|
"""
|
|
276
282
|
|
|
277
283
|
|
|
278
284
|
@final
|
|
279
285
|
class ConnectionRefusedException(ConnectFailedException):
|
|
280
286
|
"""
|
|
281
|
-
|
|
287
|
+
The exception that is raised when the server host actively refuses a connection.
|
|
282
288
|
"""
|
|
283
289
|
|
|
284
290
|
|
|
@@ -291,9 +297,7 @@ class ConnectionRefusedException(ConnectFailedException):
|
|
|
291
297
|
@final
|
|
292
298
|
class AlreadyRegisteredException(LocalException):
|
|
293
299
|
"""
|
|
294
|
-
|
|
295
|
-
attempt is made to register a servant, servant locator, facet, plug-in, or object adapter more than once for the
|
|
296
|
-
same ID.
|
|
300
|
+
The exception that is raised when you attempt to register an object more than once with the Ice runtime.
|
|
297
301
|
"""
|
|
298
302
|
|
|
299
303
|
def __init__(self, kindOfObject: str, id: str, msg: str):
|
|
@@ -302,38 +306,27 @@ class AlreadyRegisteredException(LocalException):
|
|
|
302
306
|
self.__id = id
|
|
303
307
|
|
|
304
308
|
@property
|
|
305
|
-
def kindOfObject(self):
|
|
309
|
+
def kindOfObject(self) -> str:
|
|
306
310
|
"""
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
This property can have one of the following values:
|
|
310
|
-
|
|
311
|
-
- "servant"
|
|
312
|
-
- "facet"
|
|
313
|
-
- "object"
|
|
314
|
-
- "default servant"
|
|
315
|
-
- "servant locator"
|
|
316
|
-
- "plugin"
|
|
317
|
-
- "object adapter"
|
|
318
|
-
- "object adapter with router"
|
|
319
|
-
- "replica group"
|
|
311
|
+
Returns the kind of object that is already registered: "servant", "facet", "object", "default servant",
|
|
312
|
+
"servant locator", "plugin", "object adapter", "object adapter with router", "replica group".
|
|
320
313
|
|
|
321
314
|
Returns
|
|
322
315
|
-------
|
|
323
316
|
str
|
|
324
|
-
The kind
|
|
317
|
+
The kind.
|
|
325
318
|
"""
|
|
326
319
|
return self.__kindOfObject
|
|
327
320
|
|
|
328
321
|
@property
|
|
329
|
-
def id(self):
|
|
322
|
+
def id(self) -> str:
|
|
330
323
|
"""
|
|
331
|
-
|
|
324
|
+
Returns the ID (or name) of the object that is already registered.
|
|
332
325
|
|
|
333
326
|
Returns
|
|
334
327
|
-------
|
|
335
328
|
str
|
|
336
|
-
The ID
|
|
329
|
+
The ID (or name).
|
|
337
330
|
"""
|
|
338
331
|
return self.__id
|
|
339
332
|
|
|
@@ -341,14 +334,14 @@ class AlreadyRegisteredException(LocalException):
|
|
|
341
334
|
@final
|
|
342
335
|
class CommunicatorDestroyedException(LocalException):
|
|
343
336
|
"""
|
|
344
|
-
|
|
337
|
+
The exception that is raised when an operation fails because the communicator has been destroyed.
|
|
345
338
|
"""
|
|
346
339
|
|
|
347
340
|
|
|
348
341
|
@final
|
|
349
342
|
class ConnectionAbortedException(LocalException):
|
|
350
343
|
"""
|
|
351
|
-
|
|
344
|
+
The exception that is raised when an operation fails because the connection has been aborted.
|
|
352
345
|
"""
|
|
353
346
|
|
|
354
347
|
def __init__(self, closedByApplication: bool, msg: str):
|
|
@@ -356,14 +349,14 @@ class ConnectionAbortedException(LocalException):
|
|
|
356
349
|
self.__closedByApplication = closedByApplication
|
|
357
350
|
|
|
358
351
|
@property
|
|
359
|
-
def closedByApplication(self):
|
|
352
|
+
def closedByApplication(self) -> bool:
|
|
360
353
|
return self.__closedByApplication
|
|
361
354
|
|
|
362
355
|
|
|
363
356
|
@final
|
|
364
357
|
class ConnectionClosedException(LocalException):
|
|
365
358
|
"""
|
|
366
|
-
|
|
359
|
+
The exception that is raised when an operation fails because the connection has been closed gracefully.
|
|
367
360
|
"""
|
|
368
361
|
|
|
369
362
|
def __init__(self, closedByApplication: bool, msg: str):
|
|
@@ -371,53 +364,48 @@ class ConnectionClosedException(LocalException):
|
|
|
371
364
|
self.__closedByApplication = closedByApplication
|
|
372
365
|
|
|
373
366
|
@property
|
|
374
|
-
def closedByApplication(self):
|
|
367
|
+
def closedByApplication(self) -> bool:
|
|
375
368
|
return self.__closedByApplication
|
|
376
369
|
|
|
377
370
|
|
|
378
371
|
@final
|
|
379
372
|
class FeatureNotSupportedException(LocalException):
|
|
380
373
|
"""
|
|
381
|
-
|
|
374
|
+
The exception that is raised when attempting to use an unsupported feature.
|
|
382
375
|
"""
|
|
383
376
|
|
|
384
377
|
|
|
385
378
|
@final
|
|
386
379
|
class FixedProxyException(LocalException):
|
|
387
380
|
"""
|
|
388
|
-
|
|
381
|
+
The exception that is raised when attempting to change a connection-related property on a fixed proxy.
|
|
389
382
|
"""
|
|
390
383
|
|
|
391
384
|
|
|
392
385
|
@final
|
|
393
386
|
class InitializationException(LocalException):
|
|
394
387
|
"""
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
Attributes
|
|
398
|
-
----------
|
|
399
|
-
reason: str
|
|
400
|
-
The reason for the failure.
|
|
388
|
+
The exception that is raised when communicator initialization fails.
|
|
401
389
|
"""
|
|
402
390
|
|
|
403
391
|
|
|
404
392
|
class InvocationCanceledException(LocalException):
|
|
405
393
|
"""
|
|
406
|
-
|
|
394
|
+
The exception that is raised when an asynchronous invocation fails because it was canceled explicitly by the user.
|
|
407
395
|
"""
|
|
408
396
|
|
|
409
397
|
|
|
410
398
|
@final
|
|
411
399
|
class NoEndpointException(LocalException):
|
|
412
400
|
"""
|
|
413
|
-
|
|
401
|
+
The exception that is raised when the Ice runtime cannot find a suitable endpoint to connect to.
|
|
414
402
|
"""
|
|
415
403
|
|
|
416
404
|
|
|
417
405
|
@final
|
|
418
406
|
class NotRegisteredException(LocalException):
|
|
419
407
|
"""
|
|
420
|
-
|
|
408
|
+
The exception that is raised when attempting to find or deregister something that is not registered with Ice.
|
|
421
409
|
"""
|
|
422
410
|
|
|
423
411
|
def __init__(self, kindOfObject: str, id: str, msg: str):
|
|
@@ -426,26 +414,26 @@ class NotRegisteredException(LocalException):
|
|
|
426
414
|
self.__id = id
|
|
427
415
|
|
|
428
416
|
@property
|
|
429
|
-
def kindOfObject(self):
|
|
417
|
+
def kindOfObject(self) -> str:
|
|
430
418
|
"""
|
|
431
|
-
|
|
419
|
+
Returns the kind of object that is not registered.
|
|
432
420
|
|
|
433
421
|
Returns
|
|
434
422
|
-------
|
|
435
423
|
str
|
|
436
|
-
The kind
|
|
424
|
+
The kind.
|
|
437
425
|
"""
|
|
438
426
|
return self.__kindOfObject
|
|
439
427
|
|
|
440
428
|
@property
|
|
441
|
-
def id(self):
|
|
429
|
+
def id(self) -> str:
|
|
442
430
|
"""
|
|
443
|
-
|
|
431
|
+
Returns the ID (or name) of the object that is not registered.
|
|
444
432
|
|
|
445
433
|
Returns
|
|
446
434
|
-------
|
|
447
435
|
str
|
|
448
|
-
The ID
|
|
436
|
+
The ID (or name).
|
|
449
437
|
"""
|
|
450
438
|
return self.__id
|
|
451
439
|
|
|
@@ -453,53 +441,53 @@ class NotRegisteredException(LocalException):
|
|
|
453
441
|
@final
|
|
454
442
|
class ObjectAdapterDeactivatedException(LocalException):
|
|
455
443
|
"""
|
|
456
|
-
|
|
444
|
+
The exception that is raised when attempting to use an :class:`ObjectAdapter` that has been deactivated.
|
|
457
445
|
"""
|
|
458
446
|
|
|
459
447
|
|
|
460
448
|
@final
|
|
461
449
|
class ObjectAdapterDestroyedException(LocalException):
|
|
462
450
|
"""
|
|
463
|
-
|
|
451
|
+
The exception that is raised when attempting to use an :class:`ObjectAdapter` that has been destroyed.
|
|
464
452
|
"""
|
|
465
453
|
|
|
466
454
|
|
|
467
455
|
@final
|
|
468
456
|
class ObjectAdapterIdInUseException(LocalException):
|
|
469
457
|
"""
|
|
470
|
-
|
|
471
|
-
active ObjectAdapter with the same adapter
|
|
458
|
+
The exception that is raised when an :class:`ObjectAdapter` cannot be activated. This can happen when a
|
|
459
|
+
:class:`Locator` implementation detects another active :class:`ObjectAdapter` with the same adapter ID.
|
|
472
460
|
"""
|
|
473
461
|
|
|
474
462
|
|
|
475
463
|
@final
|
|
476
464
|
class ParseException(LocalException):
|
|
477
465
|
"""
|
|
478
|
-
|
|
466
|
+
The exception that is raised when the parsing of a string fails.
|
|
479
467
|
"""
|
|
480
468
|
|
|
481
469
|
|
|
482
470
|
@final
|
|
483
471
|
class SecurityException(LocalException):
|
|
484
472
|
"""
|
|
485
|
-
|
|
473
|
+
The exception that is raised when a failure occurs in the security subsystem. This includes IceSSL errors.
|
|
486
474
|
"""
|
|
487
475
|
|
|
488
476
|
|
|
489
477
|
@final
|
|
490
478
|
class TwowayOnlyException(LocalException):
|
|
491
479
|
"""
|
|
492
|
-
The
|
|
493
|
-
|
|
494
|
-
|
|
480
|
+
The exception that is raised when attempting to invoke an operation with ``ice_oneway``, ``ice_batchOneway``,
|
|
481
|
+
``ice_datagram``, or ``ice_batchDatagram``, and the operation has a return value, an out parameter, or an exception
|
|
482
|
+
specification.
|
|
495
483
|
"""
|
|
496
484
|
|
|
497
485
|
|
|
498
486
|
@final
|
|
499
487
|
class PropertyException(LocalException):
|
|
500
488
|
"""
|
|
501
|
-
|
|
502
|
-
|
|
489
|
+
The exception that is raised when a property cannot be set or retrieved.
|
|
490
|
+
For example, this exception is raised when attempting to set an unknown Ice property.
|
|
503
491
|
"""
|
|
504
492
|
|
|
505
493
|
|
Ice/LogMessageType.py
CHANGED
|
@@ -11,29 +11,30 @@ class LogMessageType(Enum):
|
|
|
11
11
|
"""
|
|
12
12
|
Represents the different types of log messages.
|
|
13
13
|
|
|
14
|
-
Enumerators:
|
|
15
|
-
|
|
16
|
-
- PrintMessage:
|
|
17
|
-
The :class:`Ice.RemoteLoggerPrx` received a print message.
|
|
18
|
-
|
|
19
|
-
- TraceMessage:
|
|
20
|
-
The :class:`Ice.RemoteLoggerPrx` received a trace message.
|
|
21
|
-
|
|
22
|
-
- WarningMessage:
|
|
23
|
-
The :class:`Ice.RemoteLoggerPrx` received a warning message.
|
|
24
|
-
|
|
25
|
-
- ErrorMessage:
|
|
26
|
-
The :class:`Ice.RemoteLoggerPrx` received an error message.
|
|
27
|
-
|
|
28
14
|
Notes
|
|
29
15
|
-----
|
|
30
16
|
The Slice compiler generated this enum class from Slice enumeration ``::Ice::LogMessageType``.
|
|
31
17
|
"""
|
|
32
|
-
|
|
18
|
+
|
|
33
19
|
PrintMessage = 0
|
|
20
|
+
"""
|
|
21
|
+
The :class:`Ice.RemoteLoggerPrx` received a print message.
|
|
22
|
+
"""
|
|
23
|
+
|
|
34
24
|
TraceMessage = 1
|
|
25
|
+
"""
|
|
26
|
+
The :class:`Ice.RemoteLoggerPrx` received a trace message.
|
|
27
|
+
"""
|
|
28
|
+
|
|
35
29
|
WarningMessage = 2
|
|
30
|
+
"""
|
|
31
|
+
The :class:`Ice.RemoteLoggerPrx` received a warning message.
|
|
32
|
+
"""
|
|
33
|
+
|
|
36
34
|
ErrorMessage = 3
|
|
35
|
+
"""
|
|
36
|
+
The :class:`Ice.RemoteLoggerPrx` received an error message.
|
|
37
|
+
"""
|
|
37
38
|
|
|
38
39
|
_Ice_LogMessageType_t = IcePy.defineEnum(
|
|
39
40
|
"::Ice::LogMessageType",
|
Ice/Logger.py
CHANGED
|
@@ -5,15 +5,15 @@ from abc import ABC, abstractmethod
|
|
|
5
5
|
|
|
6
6
|
class Logger(ABC):
|
|
7
7
|
"""
|
|
8
|
-
|
|
8
|
+
Represents Ice's abstraction for logging and tracing.
|
|
9
9
|
|
|
10
|
-
Applications can provide their own logger by implementing this
|
|
10
|
+
Applications can provide their own logger by implementing this abstraction and setting a logger on the communicator.
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
@abstractmethod
|
|
14
14
|
def print(self, message: str):
|
|
15
15
|
"""
|
|
16
|
-
|
|
16
|
+
Prints a message.
|
|
17
17
|
|
|
18
18
|
The message is printed literally, without any decorations such as executable name or timestamp.
|
|
19
19
|
|
|
@@ -32,7 +32,7 @@ class Logger(ABC):
|
|
|
32
32
|
@abstractmethod
|
|
33
33
|
def trace(self, category: str, message: str):
|
|
34
34
|
"""
|
|
35
|
-
|
|
35
|
+
Logs a trace message.
|
|
36
36
|
|
|
37
37
|
Parameters
|
|
38
38
|
----------
|
|
@@ -46,7 +46,7 @@ class Logger(ABC):
|
|
|
46
46
|
@abstractmethod
|
|
47
47
|
def warning(self, message: str):
|
|
48
48
|
"""
|
|
49
|
-
|
|
49
|
+
Logs a warning message.
|
|
50
50
|
|
|
51
51
|
Parameters
|
|
52
52
|
----------
|
|
@@ -58,7 +58,7 @@ class Logger(ABC):
|
|
|
58
58
|
@abstractmethod
|
|
59
59
|
def error(self, message: str):
|
|
60
60
|
"""
|
|
61
|
-
|
|
61
|
+
Logs an error message.
|
|
62
62
|
|
|
63
63
|
Parameters
|
|
64
64
|
----------
|
|
@@ -70,19 +70,19 @@ class Logger(ABC):
|
|
|
70
70
|
@abstractmethod
|
|
71
71
|
def getPrefix(self) -> str:
|
|
72
72
|
"""
|
|
73
|
-
|
|
73
|
+
Returns this logger's prefix.
|
|
74
74
|
|
|
75
75
|
Returns
|
|
76
76
|
-------
|
|
77
77
|
str
|
|
78
|
-
The prefix
|
|
78
|
+
The prefix.
|
|
79
79
|
"""
|
|
80
80
|
pass
|
|
81
81
|
|
|
82
82
|
@abstractmethod
|
|
83
83
|
def cloneWithPrefix(self, prefix: str) -> "Logger":
|
|
84
84
|
"""
|
|
85
|
-
|
|
85
|
+
Returns a clone of the logger with a new prefix.
|
|
86
86
|
|
|
87
87
|
Parameters
|
|
88
88
|
----------
|
|
@@ -91,7 +91,7 @@ class Logger(ABC):
|
|
|
91
91
|
|
|
92
92
|
Returns
|
|
93
93
|
-------
|
|
94
|
-
Logger
|
|
94
|
+
Ice.Logger
|
|
95
95
|
A new logger instance with the specified prefix.
|
|
96
96
|
"""
|
|
97
97
|
pass
|