class Ashikawa::Core::JsonError
This Exception is thrown when the Json from the server was malformed
Public Class Methods
new()
click to toggle source
Create a new instance
@return RuntimeError @api private
Calls superclass method
Ashikawa::Core::ServerError::new
# File lib/ashikawa-core/exceptions/server_error/json_error.rb, line 12 def initialize super(nil) end
Public Instance Methods
to_s()
click to toggle source
String representation of the exception
@return String @api private
# File lib/ashikawa-core/exceptions/server_error/json_error.rb, line 20 def to_s 'Either the JSON from the server was malformed or the content type incorrect' end