Exception: StrapiRuby::ServerError

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

Instance Method Summary collapse

Constructor Details

#initialize(message, status) ⇒ ServerError

Returns a new instance of ServerError.



40
41
42
# File 'lib/strapi_ruby/errors/client_error.rb', line 40

def initialize(message, status)
  super("#{ErrorMessage.strapi_server_status} #{status}: #{message}. Please try again later.")
end