Skip to content

Commit 0bc3504

Browse files
committed
Added error types.
1 parent 13a9e71 commit 0bc3504

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'package:exception_templates/exception_templates.dart';
2+
3+
/// This type of error is thrown if an attempt at reading a `DartObject`
4+
/// failed because a suitable `Decoder` is not registered with `GenericReader`.
5+
abstract class DecoderNotFound extends ErrorType {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'package:exception_templates/exception_templates.dart';
2+
3+
/// This type of error is thrown if an invalid
4+
/// field name is provided when reading a constant value.
5+
abstract class InvalidFieldName extends ErrorType {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'package:exception_templates/exception_templates.dart';
2+
3+
/// This type of error is thrown if an invalid type argument
4+
/// is provided for a generic type.
5+
abstract class InvalidTypeArgument extends ErrorType {}

0 commit comments

Comments
 (0)