10-27-2015 08:20 AM
Following Automation REST Response documentation, we are able now to create a custom exception and return an appropiate http error code from our operations, as shown in the example below:
{
"entity-type": "exception",
"code": "org.nuxeo.ecm.automation.TraceException",
"status": 600,
"message": "Failed to invoke operation: Test.UpdateDocMetadata"
}
In this example 600 is our custom error code.
Now, we would like to be able to return a custom message in the exception. For example, instead of having "Failed to invoke operation: Test.UpdateDocMetadata operation", we would like to have a custom message. Is this posible?
We are using Nuxeo 7.2.
Thanks in advance and best regards,
11-12-2015 05:27 AM
Hi!
I can think about several possibilities, depending on what you have done. If I only look at the example you gave, you can:
I hope this helps.
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.