CockpitCommandError constructor

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

Creates a CockpitCommandError.

Implementation

CockpitCommandError({
  required this.code,
  required this.message,
  Map<String, Object?> details = const <String, Object?>{},
}) : details = Map.unmodifiable(details);