Exception: NgrokAPI::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ngrokapi/error.rb

Overview

Base Error class for all Ngrok Errors

Direct Known Subclasses

NgrokAPI::Errors::NotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg: "An error occurred with the NgrokAPI", response: nil) ⇒ Error

Returns a new instance of Error.



11
12
13
14
# File 'lib/ngrokapi/error.rb', line 11

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/ngrokapi/error.rb', line 9

def response
  @response
end