Exception: Ticketing::InvalidInput

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

Overview

The key (or other argument) failed local validation before any network I/O.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



23
24
25
# File 'lib/ticketing/errors.rb', line 23

def reason
  @reason
end