Sha256: 2a3ad71edf455f96042c2d631926e71d770716cc706713fa5c5df855f87d4df8

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 Bytes

Contents

# -*- encoding : utf-8 -*-
module Ashikawa
  module Core
    # The server had an error during the request
    class ServerError < 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

5 entries across 5 versions & 1 rubygems

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