Skip navigation links


COM.FutureTense.XML.Post
Class XMLPost.XMLPostException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by COM.FutureTense.XML.Post.XMLPost.XMLPostException

All Implemented Interfaces:
java.io.Serializable
Enclosing class:
XMLPost

public static class XMLPost.XMLPostException
extends java.lang.Exception

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.

See Also:
Serialized Form

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

getErrno

public int getErrno()
Returns the errno value associated with this failure
Returns:
errno

getResponse

public java.lang.String getResponse()
Returns the response returned by the target
Returns:
response, not decoded

getStatusCodes

public 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. The content of each status code is dependent on the target code being executed. Some responses may not set any status codes, while others may set codes that indicate success as well as failure (in which case they need to be examined to determine which ones are relevant and which ones are not.)
Returns:
ftStatusCode
See Also:
ftStatusCode

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.