Sha256: 17b229d8ecf929a25c10a67f8944081de5ee43212647296eba96687b99d845d4
Contents?: true
Size: 592 Bytes
Versions: 43
Compression:
Stored size: 592 Bytes
Contents
# typed: true # frozen_string_literal: true module Setsuzoku # The base definition for the exception handling class. # This can be overridden by application configuration. class ExternalApiHandler def call_external_api_wrapper(**args) puts('Setsuzoku API call pending') response = yield puts("Setsuzoku API call complete. Success status: #{response[:success]}") end def call_external_api_exception(**args) puts(args[:exception].backtrace.join("\n")) if args[:exception] puts("call_external_api failed with: #{args.inspect}") end end end
Version data entries
43 entries across 43 versions & 1 rubygems