error method
Implementation
@override
void error(ErrorInfoData errorInfoData) {
final code = errorInfoData.code;
final status = errorInfoData.status;
if (code == null) {
//TODO: review required fields
return;
}
final exception = ErrorInfo(code, errorInfoData.message, status);
_onErrorCtrl.add(exception);
}