mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 04:42:35 +00:00
refactor to use exception helper factories
This commit is contained in:
@@ -95,9 +95,9 @@ impl LuminanceSource for Luma8LuminanceSource {
|
||||
}
|
||||
|
||||
fn rotateCounterClockwise45(&self) -> Result<Box<dyn LuminanceSource>, crate::Exceptions> {
|
||||
Err(crate::Exceptions::UnsupportedOperationException(Some(
|
||||
Err(crate::Exceptions::unsupportedOperation(
|
||||
"This luminance source does not support rotation by 45 degrees.".to_owned(),
|
||||
)))
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user