com.nexaweb.client.netservice
Class NetServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nexaweb.exceptions.NexawebException
com.nexaweb.client.netservice.NetServiceException
- All Implemented Interfaces:
- java.io.Serializable
- public class NetServiceException
- extends NexawebException
NetServiceException is thrown by various NetService methods
and typically wraps a FileNotFoundException, IOException or ConnectionException.
- See Also:
- Serialized Form
|
Method Summary |
HttpResponse |
getErrorResponse()
Gets the error response from this Exception
If the retrieve or retrieveAndProcess or other NetService requests throw an exception,
user can extract this error response to find out more error information. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NetServiceException
public NetServiceException(java.lang.String msgId)
NetServiceException
public NetServiceException(java.lang.String msgId,
java.lang.String msgArgument)
NetServiceException
public NetServiceException(java.lang.String msgId,
java.lang.String arg,
java.lang.Throwable cause)
NetServiceException
public NetServiceException(java.lang.String msgId,
java.lang.String[] args)
NetServiceException
public NetServiceException(java.lang.String msgId,
java.lang.String[] args,
java.lang.Throwable cause)
NetServiceException
public NetServiceException(java.lang.String msgId,
java.lang.Throwable cause)
NetServiceException
public NetServiceException(java.lang.String msgId,
java.lang.Throwable cause,
HttpResponse errorResponse)
getErrorResponse
public HttpResponse getErrorResponse()
- Gets the error response from this Exception
If the retrieve or retrieveAndProcess or other NetService requests throw an exception,
user can extract this error response to find out more error information.
This error response is per NetServiceException instance.
If there is a network level error, this response is the raw Network response.
If there is a processing error with retrieveAndProcess, this response is the retrieved
response that is causing the processing exception.
- Returns:
- a HttpResponse object with the information from the response. Depending on the
server response and JVM capability, this response maybe have the data from
the response status code to complete response header information with the http
data returned from the server.
Copyright © 2005 Nexaweb Technologies, Inc. All Rights Reserved.