@WrRan
2016-11-17T08:44:26.000000Z
字数 943
阅读 1045
node-oracledb
The last parameter of each method is a callback, unless
Promises are being used. The first parameter of
the callback is an Error object that contains error information if
the call fails. If the call succeeds, then the object is null.
When using Promises, the catch()
callback's error object will
contain error information when the Promise chain fails.
If an invalid value is set for a property, then an error occurs. The
same is true for invalid operations on read-only or write-only
properties. If an unrecognized property name is used, it will be
ignored.
The Error object contains a message property.
String message
The text of the error message.
The error may be a standard Oracle message with a prefix like ORA or
PLS. Alternatively it may be a node-oracledb specific error prefixed with
NJS or DPI.
A single line error message may look like this:
ORA-01017: invalid username/password; logon denied
A multi-line error message may look like this:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'TESTPRC' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored