Exception: Acclimate::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/acclimate/error.rb

Instance Method Summary collapse

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( message, options={} )
  @options = options

  super( message )
end

Instance Method Details

#exit_codeObject



10
11
12
# File 'lib/acclimate/error.rb', line 10

def exit_code
  options[:exit_code] || 1
end

#handled?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/acclimate/error.rb', line 14

def handled?
  options[:handled] || false
end