Exception: Gate::Command::InvalidCommand

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gate/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InvalidCommand

Returns a new instance of InvalidCommand.



17
18
19
20
# File 'lib/gate/command.rb', line 17

def initialize(errors)
  @errors = errors
  super("Invalid command")
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



15
16
17
# File 'lib/gate/command.rb', line 15

def errors
  @errors
end

Instance Method Details

#full_messageObject



22
23
24
# File 'lib/gate/command.rb', line 22

def full_message
  errors.values.join(", ")
end