Class: Glia::Errors::OAuthCodeAlreadyUsedError

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) ⇒ OAuthCodeAlreadyUsedError

Returns a new instance of OAuthCodeAlreadyUsedError.



407
408
409
410
411
412
413
# File 'lib/glia/errors/client_errors.rb', line 407

def initialize(message: nil)
  super(
    type: OAUTH_CODE_ALREADY_USED_ERROR,
    ref: create_ref(OAUTH_CODE_ALREADY_USED_ERROR),
    message: message || 'OAuth code has already been used'
  )
end