mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
refactor to use exception helper factories
This commit is contained in:
@@ -93,9 +93,9 @@ impl<'a> MultiFinderPatternFinder<'_> {
|
||||
|
||||
if size < 3 {
|
||||
// Couldn't find enough finder patterns
|
||||
return Err(Exceptions::NotFoundException(Some(
|
||||
return Err(Exceptions::notFound(
|
||||
"Couldn't find enough finder patterns".to_owned(),
|
||||
)));
|
||||
));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -212,7 +212,7 @@ impl<'a> MultiFinderPatternFinder<'_> {
|
||||
if !results.is_empty() {
|
||||
Ok(results)
|
||||
} else {
|
||||
Err(Exceptions::NotFoundException(None))
|
||||
Err(Exceptions::notFoundEmpty())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user