Class: Rack::RPC::Error
- Inherits:
-
XMLRPC::FaultException
- Object
- XMLRPC::FaultException
- Rack::RPC::Error
- Defined in:
- lib/rack/rpc/error.rb
Overview
Represents an RPC Exception service.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(code, message, data = nil) ⇒ Error
constructor
Creates a new rpc related exception.
Constructor Details
#initialize(code, message, data = nil) ⇒ Error
Creates a new rpc related exception. This is useful if one wants to define custom exceptions.
22 23 24 25 |
# File 'lib/rack/rpc/error.rb', line 22 def initialize(code, , data = nil) @data = data super(code, ) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/rack/rpc/error.rb', line 8 def data @data end |