class Rack::RPC::Error
Represents an RPC
Exception service.
Attributes
data[R]
Public Class Methods
new(code, message, data = nil)
click to toggle source
Creates a new rpc related exception. This is useful if one wants to define custom exceptions. @param [Fixnum] code an error code for the exception (used for mapping
on the client side)
@param [String] message the message that should be send along @param [Object] a data object that may contain additional data on the
error (CAUTION: this is not possible with XMLRPC)
Calls superclass method
# File lib/rack/rpc/error.rb, line 22 def initialize(code, message, data = nil) @data = data super(code, message) end