[oXygen-sdk] Handle 'Target file not found' in our custom plugin/dita framework

Pascal Beutels pbeutels at sdl.com
Tue Feb 6 09:01:33 CST 2018


Hi,

When handling conrefs to objects that no longer exist in our CMS, we would like to handle this the same way as regular dita files with the same issue.

E.g
<note id="GUID-364D534C-E105-4CA7-81B5-FA910387D630" conref="./Jenkins/nonexistingfile.dita">

Results in a '[Target file not found]' error with more details when you hover over.

For the moment we return a new File(tothenonexistingpath) in getCanonicalFileFromFileUrl, which results in the erro:

xxx\GUID-C2F39B76-FDC6-4E7C-80E1-36E7BC635FBA (The system cannot find the file specified)

Is there a way we can raise the same error from our custom code?


Kind regards,

Pascal

www.sdl.com
SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
​SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. 
Registered address: SDL PLC, New Globe House, Vanwall Business Park, Vanwall Road, Maidenhead, SL6 4UB, U.K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20180206/320273a9/attachment.html>


More information about the oXygen-sdk mailing list