Class: Glia::Errors::FacebookAccessTokenNotPermanentError

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

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil) ⇒ FacebookAccessTokenNotPermanentError

Returns a new instance of FacebookAccessTokenNotPermanentError.



373
374
375
376
377
378
379
# File 'lib/glia/errors/client_errors.rb', line 373

def initialize(message: nil)
  super(
    type: FACEBOOK_ACCESS_TOKEN_NOT_PERMANENT_ERROR,
    ref: create_ref(FACEBOOK_ACCESS_TOKEN_NOT_PERMANENT_ERROR),
    message: message || 'Access token does not yield permanent access tokens'
  )
end