Exception: Explore::Cli::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/explore/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exit_code: 1) ⇒ Error

Returns a new instance of Error.



14
15
16
17
# File 'lib/explore/cli.rb', line 14

def initialize(message, exit_code: 1)
  super(message)
  @exit_code = exit_code
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



12
13
14
# File 'lib/explore/cli.rb', line 12

def exit_code
  @exit_code
end