Exception: JRPC::ServerError
- Defined in:
- lib/jrpc/error/server_error.rb
Direct Known Subclasses
InternalError, InternalServerError, InvalidParams, InvalidRequest, MethodNotFound, ParseError, UnknownError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message, code) ⇒ ServerError
Returns a new instance of ServerError.
5 6 7 8 |
# File 'lib/jrpc/error/server_error.rb', line 5 def initialize(, code) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/jrpc/error/server_error.rb', line 3 def code @code end |