Exception: CodinRep::EmployeeCommand::InvalidInteger

Inherits:
StandardError
  • Object
show all
Defined in:
lib/codin_rep/employee_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(invalid_integer) ⇒ InvalidInteger

Returns a new instance of InvalidInteger.



38
39
40
# File 'lib/codin_rep/employee_command.rb', line 38

def initialize(invalid_integer)
  @invalid_integer = invalid_integer
end

Instance Method Details

#messageObject



42
43
44
# File 'lib/codin_rep/employee_command.rb', line 42

def message
  message = "Invalid integer for employee operation '#{@invalid_integer}'. Integer must be only numbers and at most #{CodinRep::EmployeeCommand::CODE_MAX_SIZE} digits."
end