Class: Error

ProducerDb.Error(error)

new Error(error)

Create a new ProducerDb.Error to report an error using ProducerDb methods, wrapping the given error object. Call with: throw new ProducerDb.Error(new Error("message")).
Parameters:
Name Type Description
error Error The exception created with new Error.
Source: