Exception: DefraRuby::CompaniesHouse::CompanyNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- DefraRuby::CompaniesHouse::CompanyNotFoundError
- Defined in:
- lib/defra_ruby/companies_house/api.rb
Instance Method Summary collapse
-
#initialize(company_number) ⇒ CompanyNotFoundError
constructor
A new instance of CompanyNotFoundError.
- #message ⇒ Object
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
#message ⇒ Object
38 39 40 |
# File 'lib/defra_ruby/companies_house/api.rb', line 38 def I18n.t(".defra_ruby.companies_house.errors.company_not_found", company_number: @company_number) end |