This article is for LoopBack 2.x, which is no longer supported. Please see the corresponding article for 3.x.

Error object

Edit this page
Page Contents

By convention, LoopBack passes an Error object to callback functions as the err parameter.

For more information, see

The following table describes the properties of the error object.

Property Type Description
name String Name of the error.
status String When the error occurs during an HTTP request, the HTTP status code.
message String The error message.

Note:

Any other properties of the error object are copied to the error output.


AltStyle によって変換されたページ (->オリジナル) /