mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Story#105846070 - save error to json obj
This commit is contained in:
parent
05c4aaf3f1
commit
9bc34ed9ef
2 changed files with 5 additions and 1 deletions
|
@ -46,8 +46,11 @@ module Soap
|
|||
class Arireg
|
||||
|
||||
class NotAvailableError < StandardError
|
||||
attr_accessor :json
|
||||
def initialize(params)
|
||||
params[:message] = "#{I18n.t(:business_registry_service_not_available)}" unless params.key? :message
|
||||
@json = params
|
||||
|
||||
super(params)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue