Exception: DefraRuby::CompaniesHouse::CompanyNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/defra_ruby/companies_house/api.rb

Instance Method Summary collapse

Constructor Details

#initialize(company_number) ⇒ CompanyNotFoundError

Returns a new instance of CompanyNotFoundError.



33
34
35
36
# File 'lib/defra_ruby/companies_house/api.rb', line 33

def initialize(company_number)
  @company_number = company_number
  super
end

Instance Method Details

#messageObject



38
39
40
# File 'lib/defra_ruby/companies_house/api.rb', line 38

def message
  I18n.t(".defra_ruby.companies_house.errors.company_not_found", company_number: @company_number)
end