Exception: JRPC::Errors::ServerError
- Defined in:
- lib/jrpc/errors.rb
Direct Known Subclasses
InternalError, InternalServerError, InvalidParams, InvalidRequest, MalformedResponseError, MethodNotFound, ParseError, UnknownError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code: nil) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message, code: nil) ⇒ ServerError
Returns a new instance of ServerError.
17 18 19 20 |
# File 'lib/jrpc/errors.rb', line 17 def initialize(, code: nil) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'lib/jrpc/errors.rb', line 15 def code @code end |