Please use:
+    ERROR_VALUE = 2,

As in https://github.com/apache/cordova-blackberry/pull/107