Skip to content

Commit 1906361

Browse files
committed
update to 4
1 parent 6b6689a commit 1906361

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.4
2+
3+
- update `LValidationException` to use the message attribute instead of the first error message
4+
15
## 0.0.3
26

37
- fix \_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type ....

lib/src/exceptions/imp.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ abstract class LaravelException with EquatableMixin implements Exception {
88

99
/// * {"message" => }
1010
/// * attached message with the response
11-
final String message;
1211
1312
LaravelException({
1413
required this.response,
15-
}) : message = response['message'];
14+
});
1615

1716
@override
1817
String toString() => message;
1918

2019
@override
2120
List<Object?> get props;
21+
22+
String get message => response['message'];
2223
}

0 commit comments

Comments
 (0)