Sha256: e0c5d1f1f246e1cf886d5cb6d1edc2f207a55a8f78bdd4def9d04ecb8f68f9bc

Contents?: true

Size: 588 Bytes

Versions: 7

Compression:

Stored size: 588 Bytes

Contents

# -*- encoding : utf-8 -*-
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

7 entries across 7 versions & 1 rubygems

Version Path
ashikawa-core-0.14.0 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.13.1 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.13.0 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.12.0 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.11.0 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.10.0 lib/ashikawa-core/exceptions/server_error/json_error.rb
ashikawa-core-0.9.0 lib/ashikawa-core/exceptions/server_error/json_error.rb