Exception: Ashikawa::Core::JsonError

Inherits:
ServerError
  • Object
show all
Defined in:
lib/ashikawa-core/exceptions/server_error/json_error.rb

Overview

This Exception is thrown when the Json from the server was malformed

Instance Method Summary collapse

Constructor Details

#initializeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create a new instance



13
14
15
# File 'lib/ashikawa-core/exceptions/server_error/json_error.rb', line 13

def initialize
  super(nil)
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

String representation of the exception

Returns:

  • String



21
22
23
# File 'lib/ashikawa-core/exceptions/server_error/json_error.rb', line 21

def to_s
  'Either the JSON from the server was malformed or the content type incorrect'
end