CreateException constructor Null safety

CreateException(
  1. String? correlationId,
  2. dynamic messageOrLocator
)

Creates an error instance and assigns its values.

  • correlation_id (optional) a unique transaction id to trace execution through call chain.
  • messageOrLocator human-readable error or locator of the component that cannot be created.