|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
COM.FutureTense.XML.Post.XMLPost.XMLPostException
public static class XMLPost.XMLPostException
This exception will be thrown if there is a failure executing XMLPost for any reason.
Errors returned fall into two main categories:
In the first category, errors include invalid configuration parameters, failure reading files, xml file parse errors, and network problems. Basically, these errors indicate that something is wrong on the client side.
In the second category, errors vary widely, and they are determined by the target page that XMLPost is executing. To analyze target exceptions, this class provides a getStatusCodes
method which will return an ftStatusCode
object, which can in turn be interrogated to view the errors returned by the response. The status codes that are set here are set by the target page, so care should be taken to ensure that the target page actually sets these codes intelligently.
If the status codes still prove to be inconclusive, this class provides a method called, getResponse
to view the actual response returned by the target Content Server.
Method Summary | |
---|---|
int |
getErrno() Returns the errno value associated with this failure |
java.lang.String |
getResponse() Returns the response returned by the target |
COM.FutureTense.Util.ftStatusCode |
getStatusCodes() Returns an ftStatusCode object that contains a list of success or error result codes, including numeric error codes and comments about each failure. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getErrno()
public java.lang.String getResponse()
public COM.FutureTense.Util.ftStatusCode getStatusCodes()
ftStatusCode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.