goog.storage.mechanism.Mechanism | |
goog.storage.mechanism.ErrorHandlingMechanism | goog.storage.mechanism.Mechanism |
mechanism
: !goog.storage.mechanism.Mechanism
Underlying storage
mechanism.
|
errorHandler
: goog.storage.mechanism.ErrorHandlingMechanism.ErrorHandler
An error handler.
|
![]()
A function that handles errors raised in goog.storage. Since some places in
the goog.storage codebase throw strings instead of Error objects, we accept
these as a valid parameter type. It supports the following arguments:
1) The raised error (either in Error or string form);
2) The operation name which triggered the error, as defined per the
ErrorHandlingMechanism.Operation enum;
3) The key that is passed to a storage method;
4) An optional value that is passed to a storage method (only used in set
operations).
|
Code » | |
![]()
No description.
|
Code » |
![]()
Valid storage mechanism operations.
Constants:
|
Code » |