class Substation::Response::Exception::Output
Wraps response data and an exception not caught from a handler
Attributes
data[R]
Return the data available when exception
was raised
@return [Object]
@api private
exception[R]
Return the exception instance
@return [Class<StandardError>]
@api private
Public Class Methods
new(data, exception)
click to toggle source
Initialize a new instance
@param [Object] data
the data available when +exception+ was raised
@param [Class<StandardError>] exception
the exception instance raised from a handler
@return [undefined]
@api private
# File lib/substation/response/exception/output.rb, line 36 def initialize(data, exception) @data, @exception = data, exception end
Private Instance Methods
cmp?(comparator, other)
click to toggle source
Tests wether other
is comparable using comparator
@param [Symbol] comparator
the operation used for comparison
@param [Object] other
the object to test
@return [Boolean]
@api private
Calls superclass method
# File lib/substation/response/exception/output.rb, line 53 def cmp?(comparator, other) super && exception.class.public_send(comparator, other.exception.class) end