Exception: Ticketing::InvalidInput
- Defined in:
- lib/ticketing/errors.rb
Overview
The key (or other argument) failed local validation before any network I/O.
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ InvalidInput
constructor
A new instance of InvalidInput.
Constructor Details
#initialize(reason) ⇒ InvalidInput
Returns a new instance of InvalidInput.
25 26 27 28 |
# File 'lib/ticketing/errors.rb', line 25 def initialize(reason) @reason = reason super("invalid input: #{reason}") end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
23 24 25 |
# File 'lib/ticketing/errors.rb', line 23 def reason @reason end |