Exception: Acclimate::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Acclimate::Error
- Defined in:
- lib/acclimate/error.rb
Instance Method Summary collapse
- #exit_code ⇒ Object
- #handled? ⇒ Boolean
-
#initialize(message, options = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, options = {}) ⇒ Error
Returns a new instance of Error.
4 5 6 7 8 |
# File 'lib/acclimate/error.rb', line 4 def initialize( , ={} ) @options = super( ) end |
Instance Method Details
#exit_code ⇒ Object
10 11 12 |
# File 'lib/acclimate/error.rb', line 10 def exit_code [:exit_code] || 1 end |
#handled? ⇒ Boolean
14 15 16 |
# File 'lib/acclimate/error.rb', line 14 def handled? [:handled] || false end |