| java.lang.Object java.lang.Throwable java.lang.Exception org.xins.common.service.CallException
All known Subclasses: org.xins.common.http.HTTPCallException, org.xins.common.service.GenericCallException, org.xins.client.XINSCallException,
CallException | abstract public class CallException extends Exception (Code) | | Root class for all exceptions that indicate a ServiceCaller
call failed. This exception is typically only thrown by class
ServiceCaller and subclasses.
Call exceptions can be linked. The first exception is then actually
thrown to the caller. The caller can get the linked exceptions using
CallException.getNext() .
version: $Revision: 1.33 $ $Date: 2007/03/15 17:08:27 $ author: Ernst de Haan since: XINS 1.0.0 |
CallException | protected CallException(String shortReason, CallRequest request, TargetDescriptor target, long duration, String detail, Throwable cause) throws IllegalArgumentException(Code) | | Constructs a new CallException based on a short reason, the
original request, target called, call duration, detail message and cause
exception.
Parameters: shortReason - the short reason, cannot be null . Parameters: request - the original request, cannot be null . Parameters: target - descriptor for the target that was attempted to be called, can be null . Parameters: duration - the call duration in milliseconds, must be >= 0. Parameters: detail - a detailed description of the problem, can be null ifthere is no more detail. Parameters: cause - the cause exception, can be null . throws: IllegalArgumentException - if shortReason == null|| request == null|| duration < 0 . |
getDetail | public String getDetail()(Code) | | Returns a detailed description of problem, if any.
a detailed description, if available, otherwise null . |
getDuration | final public long getDuration()(Code) | | Returns the call duration. This is defined as the time elapsed between
the time the call attempt was started and the time the call returned.
The duration is in milliseconds and is always >= 0.
the call duration in milliseconds, always >= 0. |
getMessage | public String getMessage()(Code) | | Returns the detail message string of this exception.
the detail message string of this exception, never null . |
getNext | final public CallException getNext()(Code) | | Gets the next linked CallException , if there is any.
the next linked CallException , or null ifthere is none. |
getRequest | final public CallRequest getRequest()(Code) | | Returns the original request.
the original request, never null . |
getTarget | final public TargetDescriptor getTarget()(Code) | | Returns the descriptor for the target that was attempted to be called.
the target descriptor, can be null . |
|
|