Exception: Resquire::ResquireError
- Inherits:
-
StandardError
- Object
- StandardError
- Resquire::ResquireError
- 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
-
#problem ⇒ Object
readonly
Returns the value of attribute problem.
Instance Method Summary collapse
-
#initialize(problem = "Willow Run seems to have encountered a problem.") ⇒ ResquireError
constructor
A new instance of ResquireError.
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
#problem ⇒ Object (readonly)
Returns the value of attribute problem.
11 12 13 |
# File 'lib/resquire/errors.rb', line 11 def problem @problem end |