|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.eclipse.team.core.TeamException
This exception is thrown by the team provider API. It represents a failure in an API call. Since some API calls take multiple arguments, the exception is capable of returning multiple statuses. The API definition determinies if the exception represents a single or multiple status response; this can also be tested on the exception instance itself.
To determine the exact cause of the failure the caller should look at each status in detail.
Field Summary | |
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
|
protected IStatus |
status
|
static int |
UNABLE
|
Constructor Summary | |
TeamException(IStatus status)
Single status constructor for a TeamProviderException . |
|
TeamException(String message)
|
|
TeamException(String message,
Exception e)
Method TeamException. |
Method Summary | |
IStatus |
getStatus()
Answer the single status resulting from the attempted API call. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected IStatus status
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
Constructor Detail |
public TeamException(IStatus status)
TeamProviderException
.
status
- public TeamException(String message, Exception e)
message
- e
- public TeamException(String message)
Throwable.Throwable(String)
Method Detail |
public IStatus getStatus()
null
if this is a multi-status
response.
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |