Sha256: fa4ecbdf48732da0195577568038bba20dfcee3d87264505e3cc1a191c619681

Contents?: true

Size: 607 Bytes

Versions: 6

Compression:

Stored size: 607 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'ashikawa-core/exceptions/client_error.rb'

module Ashikawa
  module Core
    # This Exception is thrown when you request
    # a resource that does not exist on the server
    class ResourceNotFound < ClientError
      # Create a new instance
      #
      # @return RuntimeError
      # @api private
      def initialize
        super(404)
      end

      # String representation of the exception
      #
      # @return String
      # @api private
      def to_s
        'Status 404: The Resource you requested was not found on the server'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ashikawa-core-0.13.1 lib/ashikawa-core/exceptions/client_error/resource_not_found.rb
ashikawa-core-0.13.0 lib/ashikawa-core/exceptions/client_error/resource_not_found.rb
ashikawa-core-0.12.0 lib/ashikawa-core/exceptions/client_error/resource_not_found.rb
ashikawa-core-0.11.0 lib/ashikawa-core/exceptions/client_error/resource_not_found.rb
ashikawa-core-0.10.0 lib/ashikawa-core/exceptions/client_error/resource_not_found.rb
ashikawa-core-0.9.0 lib/ashikawa-core/exceptions/client_error/resource_not_found.rb