Sha256: ef99683dc56f793a5a3eb3f8a70fd64b945fefb2f4664692ae4728d5e0368042

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

# -*- encoding : utf-8 -*-
module Ashikawa
  module Core
    # The client had an error in the request
    class ClientError < RuntimeError
      # Create a new instance
      #
      # @param [Fixnum] status_code
      # @return RuntimeError
      # @api private
      def initialize(status_code)
        @status_code = status_code
      end

      # String representation of the exception
      #
      # @return String
      # @api private
      def to_s
        @status_code
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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