Exception: Ashikawa::Core::JsonError
- Inherits:
-
ServerError
- Object
- RuntimeError
- ServerError
- Ashikawa::Core::JsonError
- 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
-
#initialize ⇒ Object
constructor
private
Create a new instance.
-
#to_s ⇒ Object
private
String representation of the exception.
Constructor Details
#initialize ⇒ Object
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_s ⇒ Object
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
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 |