Exception: Clamp::RuntimeError

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

Overview

abstract command runtime error

Direct Known Subclasses

ExecutionError, HelpWanted, UsageError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, command) ⇒ RuntimeError

Returns a new instance of RuntimeError.



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

def initialize(message, command)
  super(message)
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



17
18
19
# File 'lib/clamp/errors.rb', line 17

def command
  @command
end