Sha256: ee4429011aad5932031ddd968f76cd766da67474e448bc8bcfa15f3e36f53790
Contents?: true
Size: 454 Bytes
Versions: 14
Compression:
Stored size: 454 Bytes
Contents
# encoding: utf-8 module Punchblock module Translator class Asterisk module AMIErrorConverter def self.convert(result = ->(e) { raise ChannelGoneError, e.message } ) yield rescue RubyAMI::Error => e case e.message when 'No such channel', /Channel (\S+) does not exist./ result.call e if result else raise e end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems