Exception: NgrokAPI::Errors::NotFoundError

Inherits:
NgrokAPI::Error show all
Defined in:
lib/ngrokapi/errors/not_found_error.rb

Overview

Error representing a 404 not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg: "Resource not found", response: nil) ⇒ NotFoundError

Returns a new instance of NotFoundError.



10
11
12
13
# File 'lib/ngrokapi/errors/not_found_error.rb', line 10

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/ngrokapi/errors/not_found_error.rb', line 8

def response
  @response
end