Exception: StrapiRuby::UnauthorizedError
- Inherits:
-
ClientError
- Object
- StandardError
- ClientError
- StrapiRuby::UnauthorizedError
- Defined in:
- lib/strapi_ruby/errors/client_error.rb
Instance Method Summary collapse
-
#initialize(message, status) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
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(, status) super("#{ErrorMessage.strapi_server_status} #{status}: #{}. Make sure your strapi_token is valid.") end |