|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.exception.FaultToException
A collection of static methods for converting uk.org.ogsadai.client.toolkit.service.fault
s into OGSA-DAI client toolkit exceptions.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement |
Constructor Summary | |
FaultToException() |
Method Summary | |
static AuthorisationException |
getAuthorisationException(AuthorisationFaultType fault) Return a AuthorisationException corresponding to a AuthorisationFaultType . |
static RequestException |
getRequestException(RequestFaultType fault) Return a RequestException corresponding to a server-side fault. |
static ResourceBusyException |
getResourceBusyException(ResourceBusyFaultType fault) Return a ResourceBusyException corresponding to a ResourceBusyFaultType . |
static ResourceUnknownException |
getResourceUnknownException(ResourceUnknownFaultType fault) Return a ResourceUnknownException corresponding to a ResourceUnknownFaultType . |
static ResourceUnknownException |
getResourceUnknownException(ResourceUnknownFaultType fault) Return a ResourceUnknownException corresponding to a ResourceUnknownFaultType . |
static ServerException |
getServerException(InternalFaultType fault) Return a ServerException corresponding to a InternalFaultType . |
private static RequestException |
getSoloRequestException(ComplexFaultType fault) Return a RequestException corresponding to a server-side fault. |
static UnknownPropertyException |
getUnknownPropertyException(InvalidResourcePropertyQNameFaultType fault) Return a UnknownPropertyException corresponding to an InvalidResourcePropertyQNameFaultType . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
Constructor Detail |
public FaultToException()
Method Detail |
public static ServerException getServerException(InternalFaultType fault)
ServerException
corresponding to a InternalFaultType
.
fault
- InternalFaultType
public static AuthorisationException getAuthorisationException(AuthorisationFaultType fault)
AuthorisationException
corresponding to a AuthorisationFaultType
.
fault
- AuthorisationFaultType
public static ResourceBusyException getResourceBusyException(ResourceBusyFaultType fault)
ResourceBusyException
corresponding to a ResourceBusyFaultType
.
fault
- ResourceBusyFaultType
.public static ResourceUnknownException getResourceUnknownException(ResourceUnknownFaultType fault)
ResourceUnknownException
corresponding to a ResourceUnknownFaultType
.
fault
- ResourceUnknownFaultType
.public static ResourceUnknownException getResourceUnknownException(ResourceUnknownFaultType fault)
ResourceUnknownException
corresponding to a ResourceUnknownFaultType
.
fault
- ResourceUnknownFaultType
.public static UnknownPropertyException getUnknownPropertyException(InvalidResourcePropertyQNameFaultType fault)
UnknownPropertyException
corresponding to an InvalidResourcePropertyQNameFaultType
.
fault
- InvalidResourcePropertyQNameFaultType
.public static RequestException getRequestException(RequestFaultType fault)
RequestException
corresponding to a server-side fault.
If the fault was caused by one of
ErrorID.RESOURCE_ID_ALREADY_ASSIGNED_ERROR
ErrorID.REQUEST_MAX_REACHED_ERROR
ErrorID.UNSUPPORTED_ACTIVITY_ERROR
ErrorID.NO_SUCH_SESSION
ErrorID.UNABLE_TO_ACCESS_SESSION_STREAM
RequestException
is returned directly (see getSoloRequestException(ReasonFaultType)
).
Otherwise, from the causes of the fault, as recorded within the fault, a causal chain of sub-exceptions is attached to the RequestException
using java.lang.Throwable.initCause(e)
.
fault
- Fault from server.private static RequestException getSoloRequestException(ComplexFaultType fault)
RequestException
corresponding to a server-side fault.
ErrorID.RESOURCE_ID_ALREADY_ASSIGNED_ERROR
then a ResourceIDAlreadyAssignedException
is returned.ErrorID.UNSUPPORTED_ACTIVITY_ERROR
then a UnsupportedActivityException
is returned.ErrorID.NO_SUCH_SESSION
then a UnknownSessionException
is returned.ErrorID.UNABLE_TO_ACCESS_SESSION_STREAM
then a UnknownSessionStreamException
is returned.ErrorID.REQUEST_MAX_REACHED_ERROR
then a RequestMaximumReachedException
is returned.RequestException
is returned.fault
- Fault from server.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |