PolicySDKException constructor

PolicySDKException(
  1. String message, {
  2. Exception? exception,
})

Creates a new PolicySDKException with the specified error message and optional underlying exception.

The message should provide a clear, human-readable description of what went wrong. The exception parameter can be used to preserve the original exception that caused this error, which is useful for debugging and error tracing.

Parameters:

  • message: A descriptive error message explaining what went wrong
  • exception: An optional underlying exception that caused this error

Implementation

PolicySDKException(
  this.message, {
  this.exception,
});