Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

NativeStorageError.js 789B

1234567891011121314151617181920212223242526
  1. cordova.define("cordova-plugin-nativestorage.NativeStorageError", function(require, exports, module) {
  2. /**
  3. * NativeStorageError
  4. * @constructor
  5. */
  6. var NativeStorageError = function(code, source, exception) {
  7. this.code = code || null;
  8. this.source = source || null;
  9. this.exception = exception || null;
  10. };
  11. // Make NativeStorageError a real Error, you can test with `instanceof Error`
  12. NativeStorageError.prototype = Object.create(Error.prototype, {
  13. constructor: { value: NativeStorageError }
  14. });
  15. NativeStorageError.NATIVE_WRITE_FAILED = 1;
  16. NativeStorageError.ITEM_NOT_FOUND = 2;
  17. NativeStorageError.NULL_REFERENCE = 3;
  18. NativeStorageError.UNDEFINED_TYPE = 4;
  19. NativeStorageError.JSON_ERROR = 5;
  20. NativeStorageError.WRONG_PARAMETER = 6;
  21. module.exports = NativeStorageError;
  22. });