mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
Include throwable cause in TransformException (#330)
Thanks @marsv024 for your contribution. The suggested changes have been verified and will be now merge into master.
This commit is contained in:
parent
58adc39afc
commit
e976338c84
@ -76,11 +76,11 @@ public interface Transformer
|
|||||||
}
|
}
|
||||||
catch (IllegalArgumentException e)
|
catch (IllegalArgumentException e)
|
||||||
{
|
{
|
||||||
throw new TransformException(BAD_REQUEST.value(), getMessage(e));
|
throw new TransformException(BAD_REQUEST.value(), getMessage(e), e);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
throw new TransformException(INTERNAL_SERVER_ERROR.value(), getMessage(e));
|
throw new TransformException(INTERNAL_SERVER_ERROR.value(), getMessage(e), e);
|
||||||
}
|
}
|
||||||
if (!targetFile.exists())
|
if (!targetFile.exists())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user