class Radar::Api::TransactionFileImporter::Processor

Public Instance Methods

process_extract(seqid, iprot, oprot) click to toggle source
# File gen/radar/api/transaction_file_importer.rb, line 38
def process_extract(seqid, iprot, oprot)
  args = read_args(iprot, Extract_args)
  result = Extract_result.new()
  begin
    result.success = @handler.extract(args.data)
  rescue ::Radar::Api::ApplicationError => app_error
    result.app_error = app_error
  rescue ::Radar::Api::WrongFileStructure => col_quantity_error
    result.col_quantity_error = col_quantity_error
  end
  write_result(result, oprot, 'extract', seqid)
end