Exception: JSONRPC2::KnownError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- JSONRPC2::KnownError
- Defined in:
- lib/jsonrpc2/interface.rb
Overview
KnownError - thrown when a predictable error occurs.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#data ⇒ Object
Returns the value of attribute data.
Class Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
27 28 29 |
# File 'lib/jsonrpc2/interface.rb', line 27 def code @code end |
#data ⇒ Object
Returns the value of attribute data.
27 28 29 |
# File 'lib/jsonrpc2/interface.rb', line 27 def data @data end |
Class Method Details
.exception(args) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/jsonrpc2/interface.rb', line 28 def self.exception(args) code, , data = *args exception = new() exception.code = code exception.data = data exception end |