Sha256: 18391df97b125076a9010b4432d3777e7058d25964d063f69aed9ebea826b28a

Contents?: true

Size: 300 Bytes

Versions: 3

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

module MinatoErrorHandler
  module Errors
    class NetworkError < MinatoErrorHandler::Errors::MinatoError
      attr_accessor :response

      def message
        "A network error has occurred!"
      end

      def status_code
        503
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minato_error_handler-0.1.2.pre.7 lib/minato_error_handler/errors/network_error.rb
minato_error_handler-0.1.2.pre.6 lib/minato_error_handler/errors/network_error.rb
minato_error_handler-0.1.2.pre.5 lib/minato_error_handler/errors/network_error.rb