Exception: JSONRPC::Error::ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- JSONRPC::Error::ServerError
- Defined in:
- lib/jsonrpc/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response_error ⇒ Object
readonly
Returns the value of attribute response_error.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(code, message) ⇒ ServerError
Returns a new instance of ServerError.
18 19 20 21 22 |
# File 'lib/jsonrpc/error.rb', line 18 def initialize(code, ) @code = code @response_error = super("Server error #{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
16 17 18 |
# File 'lib/jsonrpc/error.rb', line 16 def code @code end |
#response_error ⇒ Object (readonly)
Returns the value of attribute response_error.
16 17 18 |
# File 'lib/jsonrpc/error.rb', line 16 def response_error @response_error end |