Exception: ACTransitRails::APIAccessError
- Defined in:
- lib/actransit_rails/exceptions.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ APIAccessError
constructor
A new instance of APIAccessError.
Constructor Details
#initialize(message, code) ⇒ APIAccessError
Returns a new instance of APIAccessError.
7 8 9 10 11 |
# File 'lib/actransit_rails/exceptions.rb', line 7 def initialize(, code) @code = code @message = "ACTransit returned error: #{code} - #{}" super(@message) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/actransit_rails/exceptions.rb', line 5 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/actransit_rails/exceptions.rb', line 5 def @message end |