mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-26 20:21:33 +01:00
Fix exception in TransformationHelper (#3627)
Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
a12d64d4a3
commit
8e81bebd3a
@ -125,6 +125,8 @@ public class TransformationHelper {
|
|||||||
return service.transform(function, value);
|
return service.transform(function, value);
|
||||||
} catch (IllegalFormatException e) {
|
} catch (IllegalFormatException e) {
|
||||||
throw new TransformationException("Cannot format state '" + state + "' to format '" + format + "'", e);
|
throw new TransformationException("Cannot format state '" + state + "' to format '" + format + "'", e);
|
||||||
|
} catch (RuntimeException e) {
|
||||||
|
throw new TransformationException("Transformation service threw an exception: " + e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user