JSON Model-to-Model Projection (JM2MP) Documentation

JSON Model-to-Model Projection (JM2MP) Documentation

Class

ProjectionError

jm2mp/errors.ProjectionError

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 string

    Descriptive 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.

Source