8.0

Table Of Contents
QException
Description
Exception class for the Manager. This class is returned by the getErrorObject method.
Type
Exception
Members
Name
Type
Description
httpResponseCode
String
HTTP response while executing
command .
managerErrorCode
String
Manager error code for the
exception.
managerErrorMessage
String
Manager localized error
message.
serverErrorCode
String
QuarkXPress server error code
response from Server.
serverErrorMessage
String
Response message from
QuarkXPress Server.
serverExtendedMessage
String
QuarkXPress Server error
extended message.
Example, Object Model
String docName = "notexisting.qxp";
try {
QRequestContext ctx = getRequestContext(docName);
QRequest request = getJPEGRequest();
ctx.setRequest(ctx);
QContentData response = getService().processRequest(ctx);
System.out.println(response.getResponseURL());
}
catch (Exception ex) {
//PLEASE NOTE that the following would work only if manager threw an exception and it
is not a runtime exception. In latter cases, an empty error object will be returned.
QException error = getService().getErrorObject(ex.toString());
System.out.println(error.getServerErrorCode());
}
Page 23