CockpitTestError constructor

CockpitTestError({
  1. required CockpitTestErrorCode code,
  2. required String message,
  3. String? path,
  4. String? stepId,
  5. CockpitTestSourceLocation? location,
  6. Map<String, Object?> details = const <String, Object?>{},
})

Creates a CockpitTestError.

Implementation

CockpitTestError({
  required this.code,
  required this.message,
  this.path,
  this.stepId,
  this.location,
  Map<String, Object?> details = const <String, Object?>{},
}) : details = Map<String, Object?>.unmodifiable(
       CockpitTestValueReader.object(
         CockpitTestValueReader.jsonValue(details, r'$.details'),
         r'$.details',
       ),
     );