Exception: CodinRep::EmployeeCommand::InvalidInteger
- Inherits:
-
StandardError
- Object
- StandardError
- CodinRep::EmployeeCommand::InvalidInteger
- Defined in:
- lib/codin_rep/employee_command.rb
Instance Method Summary collapse
-
#initialize(invalid_integer) ⇒ InvalidInteger
constructor
A new instance of InvalidInteger.
- #message ⇒ Object
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
#message ⇒ Object
42 43 44 |
# File 'lib/codin_rep/employee_command.rb', line 42 def = "Invalid integer for employee operation '#{@invalid_integer}'. Integer must be only numbers and at most #{CodinRep::EmployeeCommand::CODE_MAX_SIZE} digits." end |