new ProjectionError(message, metadataopt)
The ProjectionError is the root level exception of the hierarchy of
domain-specific errors (exceptions) in the projection process.
The rest of errors inherits from this class.
Parameters
-
message
stringDescriptive message about this error's instance.
-
metadata
object<optional>
Additional information about error's context.
Properties
-
path
string<optional>
The logical path inside the projection document where this error occurs.
-
cause
Error<optional>
Error cause indicating the reason why the current error is thrown, usually another caught error.
-
path