|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.eclipse.core.runtime.CoreException
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 determines 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
|
static int |
UNABLE
|
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
static TeamException |
asTeamException(CoreException e)
Return a TeamException for the given exception. |
static TeamException |
asTeamException(InvocationTargetException e)
Return a TeamException for the given exception. |
| Methods inherited from class org.eclipse.core.runtime.CoreException |
|---|
getStatus, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
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)
TeamException which contains the given status object.
status - the status for this exception
public 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| Method Detail |
public static TeamException asTeamException(CoreException e)
TeamException for the given exception.
e - an exception
TeamException for the given exceptionpublic static TeamException asTeamException(InvocationTargetException e)
TeamException for the given exception.
e - an exception
TeamException for the given exception
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.