PolicySDKException class

A concrete implementation of IPolicySDKException that represents errors occurring within the Flutter Policy Engine SDK.

This exception class provides detailed error information including a descriptive message and an optional underlying exception that caused the error. It's used throughout the SDK to provide consistent error handling and reporting.

Example usage:

try {
  // SDK operation that might fail
} catch (e) {
  throw PolicySDKException(
    'Failed to load policy configuration',
    exception: e,
  );
}
Implemented types

Constructors

PolicySDKException.new(String message, {Exception? exception})
Creates a new PolicySDKException with the specified error message and optional underlying exception.

Properties

exception Exception?
The underlying exception that caused this SDK error, if any.
final
hashCode int
The hash code for this object.
no setterinherited
message String
A descriptive message explaining the error that occurred.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of this exception.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited