class CompaniesHouse::NotFoundError

Specific error class for when a company cannot be found (for example, if the company number given is invaid)

Public Class Methods

new(resource_type, resource_id = nil, response = nil) click to toggle source
Calls superclass method CompaniesHouse::APIError::new
# File lib/companies_house/not_found_error.rb, line 7
def initialize(resource_type, resource_id = nil, response = nil)
  super(
    "Resource not found - type `#{resource_type}`, id `#{resource_id || 'nil'}`",
    response,
  )
end