-
Notifications
You must be signed in to change notification settings - Fork 387
/
custom_exceptions.dart
51 lines (41 loc) · 1.12 KB
/
custom_exceptions.dart
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
43
44
45
46
47
48
49
50
51
import 'package:flutter_launcher_icons/utils.dart';
class InvalidAndroidIconNameException implements Exception {
const InvalidAndroidIconNameException([this.message]);
final String? message;
@override
String toString() {
return generateError(this, message);
}
}
class InvalidConfigException implements Exception {
const InvalidConfigException([this.message]);
final String? message;
@override
String toString() {
return generateError(this, message);
}
}
class NoConfigFoundException implements Exception {
const NoConfigFoundException([this.message]);
final String? message;
@override
String toString() {
return generateError(this, message);
}
}
class NoDecoderForImageFormatException implements Exception {
const NoDecoderForImageFormatException([this.message]);
final String? message;
@override
String toString() {
return generateError(this, message);
}
}
class FileNotFoundException implements Exception {
const FileNotFoundException(this.fileName);
final String fileName;
@override
String toString() {
return generateError(this, '$fileName file not found');
}
}