CockpitCommandError.targetNotHittable constructor

CockpitCommandError.targetNotHittable({
  1. required String message,
  2. Map<String, Object?> details = const <String, Object?>{},
})

Creates a CockpitCommandError using the named constructor targetNotHittable.

Implementation

factory CockpitCommandError.targetNotHittable({
  required String message,
  Map<String, Object?> details = const <String, Object?>{},
}) {
  return CockpitCommandError(
    code: targetNotHittableCode,
    message: message,
    details: details,
  );
}