Class: RelicLink::Errors::UnauthorizedError

Inherits:
HttpRequestError show all
Defined in:
lib/relic_link/errors/server_error.rb

Overview

Raised when a 401 is returned in an API response

Instance Attribute Summary

Attributes inherited from ServerError

#response

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



34
35
36
# File 'lib/relic_link/errors/server_error.rb', line 34

def initialize(response)
  super('unauthorized', response)
end