Exception: Leash::TokenExpiredError

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

Overview

Raised when the OAuth token has expired and needs to be refreshed.

Instance Attribute Summary

Attributes inherited from Error

#code, #connect_url

Instance Method Summary collapse

Constructor Details

#initialize(message = "Token expired", connect_url: nil) ⇒ TokenExpiredError

Returns a new instance of TokenExpiredError.



30
31
32
# File 'lib/leash/errors.rb', line 30

def initialize(message = "Token expired", connect_url: nil)
  super(message, code: "token_expired", connect_url: connect_url)
end