Exception: Resquire::ResquireError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/resquire/errors.rb

Overview

ResquireError handles the custom error handling for this Gem

Example

# Typical use case
raise ResquireError.new("This is a custom error!")

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(problem = "Willow Run seems to have encountered a problem.") ⇒ ResquireError

Returns a new instance of ResquireError.



12
13
14
15
# File 'lib/resquire/errors.rb', line 12

def initialize(problem="Willow Run seems to have encountered a problem.")
  @problem = problem
  super(@problem)
end

Instance Attribute Details

#problemObject (readonly)

Returns the value of attribute problem.



11
12
13
# File 'lib/resquire/errors.rb', line 11

def problem
  @problem
end