2.2.3.2 Error Response
The Error Response message is sent by the client over a device channel if an error occurs while processing a request from the server.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Header |
ErrorCode |
||||||||||||||||||||||||||||||
... |
Header (2 bytes): A SHARED_MSG_HEADER (section 2.2.1) structure. The Version field MUST be set to the same value as in the Select Version Response (section 2.2.2.2) message. The MessageId field MUST be set to ErrorResponse (2).
ErrorCode (4 bytes): A 32-bit unsigned integer containing an error code.
-
Value
Meaning
UnexpectedError
0x00000001
An unexpected error occurred.
InvalidMessage
0x00000002
An invalid message was received. Either the message is malformed, or the protocol version or message type is unexpected.
NotInitialized
0x00000003
The object MUST be initialized before the requested operation can be carried out. This error could be returned, for example, when attempting to communicate with a deactivated camera device.
InvalidRequest
0x00000004
The request is invalid in the current state.
InvalidStreamNumber
0x00000005
The provided stream number was invalid.
InvalidMediaType
0x00000006
The data specified for the stream format is invalid, inconsistent, or not supported.
OutOfMemory
0x00000007
The client ran out of memory.
ItemNotFound
0x00000008
The device does not support the requested property. This error code is generated only by version 2 of the protocol.
SetNotFound
0x00000009
The device does not support the requested property set. This error code is generated only by version 2 of the protocol.
OperationNotSupported
0x0000000A
The requested operation is not supported. This error code is generated only by version 2 of the protocol.