lib/polyphony/core/global_api.rb
# Converts the given exception spec to an exception instance.
#
# @param exception [Exception, Class, Array<class, message>] exception spec
# @return [Exception] exception instance
Converts the given exception spec to an exception instance.
Converts the given exception spec to an exception instance .
def cancel_exception(exception)
      case exception
      when Class then exception.new
      when Array then exception[0].new(exception[1])
      else RuntimeError.new(exception)
      end
    end
def cancel_exception ( exception ) case exception when Class then exception . new when Array then exception [ 0 ] . new ( exception [ 1 ] ) else RuntimeError . new ( exception ) end end
Converts the given exception spec to an exception instance.
Converts the given exception spec to an exception instance .
None
Exception
exception
None