org.eclipse.team.core
Class TeamException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.eclipse.team.core.TeamException
- All Implemented Interfaces:
- Serializable
- public class TeamException
- extends Exception
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.
- Since:
- 2.0
- See Also:
- Serialized Form
Method Summary |
IStatus |
getStatus()
Answer the single status resulting from the attempted API call. |
status
protected IStatus status
OK
public static final int OK
NOT_CHECKED_IN
public static final int NOT_CHECKED_IN
NOT_CHECKED_OUT
public static final int NOT_CHECKED_OUT
NO_REMOTE_RESOURCE
public static final int NO_REMOTE_RESOURCE
IO_FAILED
public static final int IO_FAILED
NOT_AUTHORIZED
public static final int NOT_AUTHORIZED
UNABLE
public static final int UNABLE
CONFLICT
public static final int CONFLICT
TeamException
public TeamException(IStatus status)
- Single status constructor for a
TeamProviderException
.
- Parameters:
status
-
TeamException
public TeamException(String message,
Exception e)
- Method TeamException.
- Parameters:
message
- e
-
TeamException
public TeamException(String message)
- See Also:
Throwable.Throwable(String)
getStatus
public IStatus getStatus()
- Answer the single status resulting from the attempted API call.
- Returns:
- IStatus the single status of the result, or
null
if this is a multi-status
response.
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.