Sha256: 715384a4de0422c5cd12c0c0fbcd5f82097c4da94e593287b94a56c3ffe6b371

Contents?: true

Size: 346 Bytes

Versions: 8

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Errors
    ##
    # Error representing a 404 not found
    class NotFoundError < NgrokAPI::Error
      attr_reader :response

      def initialize(msg: "Resource not found", response: nil)
        @response = response
        super(msg: msg, response: response)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ngrok-api-0.19.0 lib/ngrokapi/errors/not_found_error.rb
ngrok-api-0.18.0 lib/ngrokapi/errors/not_found_error.rb
ngrok-api-0.17.0 lib/ngrokapi/errors/not_found_error.rb
ngrok-api-0.16.0 lib/ngrokapi/errors/not_found_error.rb
ngrok-api-0.15.0 lib/ngrokapi/errors/not_found_error.rb
ngrok-api-0.14.0 lib/ngrokapi/errors/not_found_error.rb
ngrok-api-0.12.0 lib/ngrokapi/errors/not_found_error.rb
ngrok-api-0.9.0 lib/ngrokapi/errors/not_found_error.rb