Fix exception in TransformationHelper (#3627)

Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
J-N-K 2023-05-25 08:36:45 +02:00 committed by GitHub
parent a12d64d4a3
commit 8e81bebd3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,8 @@ public class TransformationHelper {
return service.transform(function, value);
} catch (IllegalFormatException 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);
}
}
}