Sha256: b70c1a8e21347c30bc02a45b34eda1bb11c845128e494f7311a359616de87468

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

require "ashikawa-core/exceptions/server_error"

module Ashikawa
  module Core
    # This Exception is thrown when the Json
    # from the server was malformed
    class JsonError < ServerError
      # Create a new instance
      #
      # @return RuntimeError
      # @api private
      def initialize
        super(nil)
      end

      # String representation of the exception
      #
      # @return String
      # @api private
      def to_s
        "Either the JSON from the server was malformed or the content type incorrect"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ashikawa-core-0.8.0 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.7.2 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.7.1 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.7.0 lib/ashikawa-core/exceptions/server_error/json_error.rb