W3cubDocs

/Bluebird

OperationalError

new OperationalError(String message) -> OperationalError

Represents an error is an explicit promise rejection as opposed to a thrown error. For example, if an error is errbacked by a callback API promisified through Promise.promisify or Promise.promisifyAll and is not a typed error, it will be converted to a OperationalError which has the original error in the .cause property.

OperationalErrors are caught in .error handlers.

© 2013–2018 Petka Antonov
Licensed under the MIT License.
http://bluebirdjs.com/docs/api/operationalerror.html