Sha256: 7793649db7e725306127fa141a34384937fad6ee209675c436397bc032cc4619

Contents?: true

Size: 291 Bytes

Versions: 8

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  ##
  # Base Error class for all Ngrok Errors
  class Error < StandardError
    attr_reader :response

    def initialize(msg: "An error occurred with the NgrokAPI", response: nil)
      @response = response
      super(msg)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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