class Statefully::Diff::Failed
{Failed} represents a difference between a succesful and failed {State}.
Attributes
error[R]
Error that caused the {State} to fail
@return [StandardError] @api public @example
Statefully::Diff::Failed.new(RuntimeError.new('Boom!')).error => #<RuntimeError: Boom!>
Public Class Methods
new(error)
click to toggle source
Constructor for {Diff::Failed}
@param error [StandardError] error that caused the {State} to fail @api semipublic @example
Statefully::Diff::Failed.new(RuntimeError.new('Boom!')) => #<Statefully::Diff::Failed error=#<RuntimeError: Boom!>>
# File lib/statefully/diff.rb, line 251 def initialize(error) @error = error end
Public Instance Methods
inspect()
click to toggle source
Human-readable representation of the {Diff::Failed}
@return [String] @api semipublic @example
Statefully::Diff::Failed.new(RuntimeError.new('Boom!')) => #<Statefully::Diff::Failed error=#<RuntimeError: Boom!>>
# File lib/statefully/diff.rb, line 262 def inspect "#<#{self.class.name} error=#{error.inspect}>" end