error.js
No description.

File Location

/goog/db/error.js

Classes

goog.db.Error
A database error. Since the stack trace can be unhelpful in an asynchronous context, the error provides a message about where it was produced.
goog.db.Error.VersionChangeBlockedError
A specific kind of database error. If a Version Change is unable to proceed due to other open database connections, it will block and this error will be thrown.

Public Protected Private

Enumerations

Global Functions

goog.db.Error.fromException(exmessage) !goog.db.Error
Constructs an goog.db.Error instance from an DOMException. This abstraction is necessary to provide backwards compatibility with Chrome21.
Arguments:
ex : !IDBDatabaseException
The exception that was thrown.
message : string
The error message to add to err if it's wrapped.
Returns: !goog.db.Error  The error that caused the failure.
code »
goog.db.Error.fromRequest(requestmessage) !goog.db.Error
Constructs an goog.db.Error instance from an IDBRequest. This abstraction is necessary to provide backwards compatibility with Chrome21.
Arguments:
request : !IDBRequest
The request that failed.
message : string
The error message to add to err if it's wrapped.
Returns: !goog.db.Error  The error that caused the failure.
code »
goog.db.Error.getCode(name) number
Translates an error name to an error code. This is purely kept for backwards compatibility with Chrome21.
Arguments:
name : string
The name of the erorr.
Returns: number  The error code corresponding to the error.
code »
goog.db.Error.getMessage(code) string
Translates an error code into a more useful message.
Arguments:
code : number
Error code.
Returns: string  A debug message.
code »
goog.db.Error.getName(code) !goog.db.Error.ErrorName
Converts an error code used by the old spec, to an error name used by the latest spec.
Arguments:
code : !goog.db.Error.ErrorCode | number
The error code to convert.
Returns: !goog.db.Error.ErrorName  The corresponding name of the error.
code »

Directory db

File Reference