hmi-core 2.2.0 contains breaking change:
- Removed old Failure constructor:
Failure({required T message, required StackTrace});
- Added new Failure constructors:
Failure('Me.area | Error message') // error happens locally
Failure.pass('Me.area', error) // error in some dependency returned from Me.area
Failure.pass('Me.area | message', error) // error in some dependency returned from Me.area with additional message
Therefore, all Failure instances must be updated, e.g.:
// this
Failure(
message: 'some error',
stackTrace: StackTrace.current,
);
// should become
Failure('some error');
hmi-core 2.2.0 contains breaking change:
Therefore, all Failure instances must be updated, e.g.: