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)
-
- (void) data
readonly
Returns the value of attribute data.
Instance Method Summary (collapse)
-
- (Error) initialize(code, message, data = nil)
constructor
Creates a new rpc related exception.
Constructor Details
- (Error) initialize(code, message, data = nil)
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
- (void) data (readonly)
Returns the value of attribute data
8 9 10 |
# File 'lib/rack/rpc/error.rb', line 8 def data @data end |