Exception: Ticketbai::TBAIFileError

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

Overview

For errors returned by the TBAIFile validation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil) ⇒ TBAIFileError

Returns a new instance of TBAIFileError.



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

def initialize(message = nil, code = nil)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



20
21
22
# File 'lib/ticketbai/errors.rb', line 20

def code
  @code
end