Exception: Ticketbai::TBAIFileError
- Defined in:
- lib/ticketbai/errors.rb
Overview
For errors returned by the TBAIFile validation.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil, code = nil) ⇒ TBAIFileError
constructor
A new instance of TBAIFileError.
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( = nil, code = nil) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
20 21 22 |
# File 'lib/ticketbai/errors.rb', line 20 def code @code end |