-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathexceptions.dart
More file actions
42 lines (35 loc) · 1.22 KB
/
exceptions.dart
File metadata and controls
42 lines (35 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/// {@template completion_installation_exception}
/// Describes an exception during the installation of completion scripts.
/// {@endtemplate}
class CompletionInstallationException implements Exception {
/// {@macro completion_installation_exception}
CompletionInstallationException({
required this.message,
required this.rootCommand,
});
/// The error message for this exception
final String message;
/// The command for which the installation failed.
final String rootCommand;
@override
String toString() =>
'Could not install completion scripts for $rootCommand: '
'$message';
}
/// {@template completion_unistallation_exception}
/// Describes an exception during the uninstallation of completion scripts.
/// {@endtemplate}
class CompletionUninstallationException implements Exception {
/// {@macro completion_unistallation_exception}
CompletionUninstallationException({
required this.message,
required this.rootCommand,
});
/// The error message for this exception
final String message;
/// The command for which the installation failed.
final String rootCommand;
@override
String toString() =>
'''Could not uninstall completion scripts for $rootCommand: $message''';
}