Skip to content

Commit

Permalink
update to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
maxzod committed Nov 4, 2021
1 parent 6b6689a commit 1906361
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.4

- update `LValidationException` to use the message attribute instead of the first error message

## 0.0.3

- fix \_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type ....
Expand Down
5 changes: 3 additions & 2 deletions lib/src/exceptions/imp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ abstract class LaravelException with EquatableMixin implements Exception {

/// * {"message" => }
/// * attached message with the response
final String message;
LaravelException({
required this.response,
}) : message = response['message'];
});

@override
String toString() => message;

@override
List<Object?> get props;

String get message => response['message'];
}

0 comments on commit 1906361

Please sign in to comment.