Sha256: 84dc894088267d288b823de760ac71cea394bfa7366eaf3739db379baefaa728

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 Bytes

Contents

module Ashikawa
  module Core
    # The server had an error during the request
    class ServerError < RuntimeError
      # Create a new instance
      #
      # @param [Integer] status
      # @return RuntimeError
      # @api private
      def initialize(status)
        @status = status
      end

      # String representation of the exception
      #
      # @return String
      # @api private
      def to_s
        "Status #{@status}: An Error occured on the server"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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