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.



12
13
14
15
# File 'lib/ngrokapi/errors/not_found_error.rb', line 12

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.



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

def response
  @response
end