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

Version Path
rbbt-rest-1.6.18 share/views/public/js/rbbt.exception.js
rbbt-rest-1.6.17 share/views/public/js/rbbt.exception.js
rbbt-rest-1.6.16 share/views/public/js/rbbt.exception.js
rbbt-rest-1.6.15 share/views/public/js/rbbt.exception.js
rbbt-rest-1.6.14 share/views/public/js/rbbt.exception.js