public class CrudServiceException extends CoreException
CoreException
, so
they are allowed throughout some parts of the API. You may call
CoreException.getStatus()
to retrieve a status object.
FIXME These exceptions automagically call
Activator.handleError(Throwable, String, Object...)
on creation
because the actually thrown exceptions are sometimes silently caught by
Eclipse code. This is not a good idea and should be fixed.
Constructor and Description |
---|
CrudServiceException(Throwable cause,
URI uri) |
Modifier and Type | Method and Description |
---|---|
protected static IStatus |
compileStatus(Throwable cause,
URI uri) |
static <T> T |
getFaultType(Throwable cause,
Class<T> faultTypeClass)
Extracts the fault type for one of the Axis-generated exceptions.
|
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public static <T> T getFaultType(Throwable cause, Class<T> faultTypeClass)
T
- the fault type we expect. E.g., TextGridFaultType
.cause
- the exception from which to extract the fault type. This must
be one of the Axis2-generated exceptions from the stubs, e.g.,
IoFaultException
.faultTypeClass
- the class of the fault type we expect. E.g.,
TextGridFaultType.class
.null
if none such instance could be
found.