code: function(_condition, _msg /*, params */) {
        if(!_condition) {
          var params = Array.prototype.slice.call(arguments, 2);
          _msg = Utils.format(_msg, params);
          $log.error(_msg); // log error message
          throw new Error(_msg);
        }
      }
docs: @memberof Utils
  
  @description
  
  Test for a condition to be met, if not an exception is thrown.
  
  @param  {boolean} _condition Condition to assert
  @param  {string} _msg Error message