fix: The code parameter must be propagated through the inheritance chain.

This commit is contained in:
dab246
2026-03-09 10:49:44 +07:00
committed by Dat H. Pham
parent 8a21e35d1e
commit 572bf6ba81
2 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -57,6 +57,8 @@ class MockBaseController extends BaseController {
}
class SomeOtherException extends RemoteException {
const SomeOtherException();
@override
String get exceptionName => 'SomeOtherException';
}
@@ -145,7 +147,7 @@ void main() {
});
test('should return false when exception is SomeOtherException', () {
expect(mockBaseController.validateUrgentException(SomeOtherException()), isFalse);
expect(mockBaseController.validateUrgentException(const SomeOtherException()), isFalse);
});
test('should return false when exception is null', () {
@@ -204,7 +206,7 @@ void main() {
test('handleErrorViewState should called when error is SomeOtherException', () {
// arrange
final error = SomeOtherException();
const error = SomeOtherException();
final stackTrace = StackTrace.current;
// act