Sha256: 402cd5998e22cff575b18b96d73c0a7a3ce26c3cf956713074b8522fd6b921bb
Contents?: true
Size: 382 Bytes
Versions: 5
Compression:
Stored size: 382 Bytes
Contents
rbbt.exception = {} rbbt.exception.null = function(variable, text){ if (variable == null) throw(text) } rbbt.exception.report = function(err){ rbbt.modal.controller().error(err, "Application Error") } rbbt.try = function(func){ var f = function(){ try { return func.apply(this, arguments) }catch(err){ rbbt.exception.report(err) } } return f }
Version data entries
5 entries across 5 versions & 1 rubygems