Exception: Expressir::CommandError

Inherits:
Error
  • Object
show all
Defined in:
lib/expressir/errors.rb

Overview

Command Errors (for rescue blocks)

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

Constructor Details

#initialize(message, command_name: nil) ⇒ CommandError

Returns a new instance of CommandError.



100
101
102
103
# File 'lib/expressir/errors.rb', line 100

def initialize(message, command_name: nil)
  @command_name = command_name
  super(message)
end

Instance Attribute Details

#command_nameObject (readonly)

Returns the value of attribute command_name.



98
99
100
# File 'lib/expressir/errors.rb', line 98

def command_name
  @command_name
end