How to return an error for display in the client
To return error messages to the client, the method that works with all operations is to throw a VirtualViewerAPIException
.
For example:
if (currentSecLevel.equals("0"))
{throw new VirtualViewerAPIException("Security violation detected");
Have questions, corrections, or concerns about this topic? Please let us know!