Exception: StrapiRuby::UnauthorizedError

Inherits:
ClientError
  • Object
show all
Defined in:
lib/strapi_ruby/errors/client_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, status) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



16
17
18
# File 'lib/strapi_ruby/errors/client_error.rb', line 16

def initialize(message, status)
  super("#{ErrorMessage.strapi_server_status} #{status}: #{message}. Make sure your strapi_token is valid.")
end