Sha256: 34e92016268c7aaa79aaec13f46872605752dfc0f36c054a80f1effd080fccf4

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

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

    def message
      "A network error has occurred!"
    end

    def status_code
      503
    end

    def serializable_methods
      default_serializable_methods.push(:response)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minato_error_handler-0.1.2.pre.4 lib/minato_error_handler/network_error.rb
minato_error_handler-0.1.2.pre.3 lib/minato_error_handler/network_error.rb
minato_error_handler-0.1.2.pre.2 lib/minato_error_handler/network_error.rb