[关闭]
@WrRan 2016-11-17T08:44:26.000000Z 字数 943 阅读 1045

node-oracledb

Errors

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.

2.1 Error Properties

The Error object contains a message property.

  1. 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:

  1. ORA-01017: invalid username/password; logon denied

A multi-line error message may look like this:

  1. ORA-06550: line 1, column 7:
  2. PLS-00201: identifier 'TESTPRC' must be declared
  3. ORA-06550: line 1, column 7:
  4. PL/SQL: Statement ignored
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注