Exception: Leash::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Leash::Error
- Defined in:
- lib/leash/errors.rb
Overview
Base error class for all Leash SDK errors.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ String?
readonly
the error code from the platform.
-
#connect_url ⇒ String?
readonly
the OAuth connect URL (present when provider is not connected).
Instance Method Summary collapse
-
#initialize(message, code: nil, connect_url: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil, connect_url: nil) ⇒ Error
Returns a new instance of Error.
14 15 16 17 18 |
# File 'lib/leash/errors.rb', line 14 def initialize(, code: nil, connect_url: nil) super() @code = code @connect_url = connect_url end |
Instance Attribute Details
#code ⇒ String? (readonly)
the error code from the platform
8 9 10 |
# File 'lib/leash/errors.rb', line 8 def code @code end |
#connect_url ⇒ String? (readonly)
the OAuth connect URL (present when provider is not connected)
8 9 10 |
# File 'lib/leash/errors.rb', line 8 def connect_url @connect_url end |