Defines JSON-RPC response.
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Gets error.
Gets error.
Attributes
- Throws
-
NoSuchElementException
if no error
Tests for error.
Tests for error.
Attributes
Tests for result.
Tests for result.
Attributes
Puts attribute.
Puts attribute.
Value parameters
- name
-
attribute name
- value
-
attribute value
Attributes
- Returns
-
new response
- Note
-
If attribute already exists with given name, then its value is replaced.
Removes attribute.
Removes attribute.
Value parameters
- name
-
attribute name
Attributes
- Returns
-
new response
Gets result.
Gets result.
Attributes
- Throws
-
NoSuchElementException
if no result
Sets attributes.
Sets attributes.
Attributes
- Returns
-
new response
Inherited methods
Gets attributes.
Gets attributes.
Attributes
- Note
-
Attributes are arbitrary values associated with message and are not included in transmission.
- Inherited from:
- JsonRpcMessage
Gets attribute value.
Gets attribute value.
Value parameters
- name
-
attribute name
Attributes
- Throws
-
NoSuchElementException
if attribute does not exist
- Inherited from:
- JsonRpcMessage
Optionally gets attribute value.
Optionally gets attribute value.
Value parameters
- name
-
attribute name
Attributes
- Inherited from:
- JsonRpcMessage
Gets attribute value or returns default if attribute does not exist.
Gets attribute value or returns default if attribute does not exist.
Value parameters
- default
-
default value
- name
-
attribute name
Attributes
- Inherited from:
- JsonRpcMessage
Gets identifier.
Gets JSON-RPC version.