Package org.eclipse.team.core
Class TeamException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.core.runtime.CoreException
org.eclipse.team.core.TeamException
- All Implemented Interfaces:
Serializable
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.
- Since:
- 2.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ModifierConstructorDescriptionTeamException
(String message) Create aTeamException
with an error status that contains the given message.TeamException
(String message, Throwable e) Create aTeamException
with an error status that contains the given message and throwable.protected
Create aTeamException
that wraps the givenCoreException
TeamException
(IStatus status) Create aTeamException
which contains the given status object. -
Method Summary
Modifier and TypeMethodDescriptionstatic TeamException
Return aTeamException
for the given exception.static TeamException
Return aTeamException
for the given exception.Methods inherited from class org.eclipse.core.runtime.CoreException
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
OK
public static final int OK- See Also:
-
NOT_CHECKED_IN
public static final int NOT_CHECKED_IN- See Also:
-
NOT_CHECKED_OUT
public static final int NOT_CHECKED_OUT- See Also:
-
NO_REMOTE_RESOURCE
public static final int NO_REMOTE_RESOURCE- See Also:
-
IO_FAILED
public static final int IO_FAILED- See Also:
-
NOT_AUTHORIZED
public static final int NOT_AUTHORIZED- See Also:
-
UNABLE
public static final int UNABLE- See Also:
-
CONFLICT
public static final int CONFLICT- See Also:
-
-
Constructor Details
-
TeamException
Create aTeamException
which contains the given status object.- Parameters:
status
- the status for this exception
-
TeamException
Create aTeamException
with an error status that contains the given message and throwable.- Parameters:
message
- the message for the exceptione
- an associated exception- Since:
- 3.0
-
TeamException
Create aTeamException
with an error status that contains the given message.- Parameters:
message
- the message for the exception
-
TeamException
Create aTeamException
that wraps the givenCoreException
- Parameters:
e
- aCoreException
- Since:
- 3.0
-
-
Method Details
-
asTeamException
Return aTeamException
for the given exception.- Parameters:
e
- an exception- Returns:
- a
TeamException
for the given exception - Since:
- 3.0
-
asTeamException
Return aTeamException
for the given exception.- Parameters:
e
- an exception- Returns:
- a
TeamException
for the given exception - Since:
- 3.0
-