public class TeamException extends CoreException
To determine the exact cause of the failure the caller should look at each status in detail.
Modifier and Type | Field and Description |
---|---|
static int |
CONFLICT |
static int |
IO_FAILED |
static int |
NO_REMOTE_RESOURCE |
static int |
NOT_AUTHORIZED |
static int |
NOT_CHECKED_IN |
static int |
NOT_CHECKED_OUT |
static int |
OK |
static int |
UNABLE |
Modifier | Constructor and Description |
---|---|
protected |
TeamException(CoreException e)
Create a
TeamException that wraps the given CoreException |
|
TeamException(IStatus status)
Create a
TeamException which contains the given status object. |
|
TeamException(String message)
Create a
TeamException with an
error status that contains the given message. |
|
TeamException(String message,
Throwable e)
Create a
TeamException with an
error status that contains the given message and
throwable. |
Modifier and Type | Method and Description |
---|---|
static TeamException |
asTeamException(CoreException e)
Return a
TeamException for the given exception. |
static TeamException |
asTeamException(InvocationTargetException e)
Return a
TeamException for the given exception. |
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public static final int OK
public static final int NOT_CHECKED_IN
public static final int NOT_CHECKED_OUT
public static final int NO_REMOTE_RESOURCE
public static final int IO_FAILED
public static final int NOT_AUTHORIZED
public static final int UNABLE
public static final int CONFLICT
public TeamException(IStatus status)
TeamException
which contains the given status object.status
- the status for this exceptionpublic TeamException(String message, Throwable e)
TeamException
with an
error status that contains the given message and
throwable.message
- the message for the exceptione
- an associated exceptionpublic TeamException(String message)
TeamException
with an
error status that contains the given message.message
- the message for the exceptionprotected TeamException(CoreException e)
TeamException
that wraps the given CoreException
e
- a CoreException
public static TeamException asTeamException(CoreException e)
TeamException
for the given exception.e
- an exceptionTeamException
for the given exceptionpublic static TeamException asTeamException(InvocationTargetException e)
TeamException
for the given exception.e
- an exceptionTeamException
for the given exception
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.