BaseError.fromError constructor
BaseError.fromError(
- Object error,
- StackTrace stackTrace
Implementation
factory BaseError.fromError(
Object error,
StackTrace stackTrace,
) {
if (error is ApiException) {
return BaseError.fromApiException(error);
}
return BaseError.fromApiException(
handleCommonError(
error,
stackTrace,
),
);
}