Sha256: c607cc25ceaa744dba9702cd8771215e3b94e5ebdcc3d6941f3d2e43b4d69529

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 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(description)
        @description = description
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ashikawa-core-0.8.0 lib/ashikawa-core/exceptions/server_error.rb