CacheException constructor

CacheException({
  1. required String key,
  2. required String operation,
  3. Object? cause,
  4. StackTrace? stack,
  5. Map<String, dynamic> metadata = const {},
})

Creates a cache exception for failures interacting with in-memory/disk cache.

Implementation

CacheException({
  required String super.key,
  required super.operation,
  super.cause,
  super.stack,
  super.metadata,
}) : super(
        userMessage: 'Failed to access cached data.',
        devMessage: 'Cache operation failed: $operation for key: $key',
        storageType: 'cache',
        severity: Severity.error,
        isReportable: true,
      );