Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.team.core
Class TeamException

java.lang.Object
  extended by 

java.lang.Throwable
      extended by 

java.lang.Exception
          extended by 

org.eclipse.core.runtime.CoreException
              extended by 
org.eclipse.team.core.TeamException
All Implemented Interfaces:
Serializable

public class TeamException
extends CoreException

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:
Serialized Form

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
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang. Throwable
fillInStackTrace, 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

OK

public static final int OK
See Also:
Constant Field Values

NOT_CHECKED_IN

public static final int NOT_CHECKED_IN
See Also:
Constant Field Values

NOT_CHECKED_OUT

public static final int NOT_CHECKED_OUT
See Also:
Constant Field Values

NO_REMOTE_RESOURCE

public static final int NO_REMOTE_RESOURCE
See Also:
Constant Field Values

IO_FAILED

public static final int IO_FAILED
See Also:
Constant Field Values

NOT_AUTHORIZED

public static final int NOT_AUTHORIZED
See Also:
Constant Field Values

UNABLE

public static final int UNABLE
See Also:
Constant Field Values

CONFLICT

public static final int CONFLICT
See Also:
Constant Field Values
Constructor Detail

TeamException

public TeamException(
IStatus status)
Create a TeamException which contains the given status object.

Parameters:
status - the status for this exception

TeamException

public TeamException(
String message,
                     
Throwable e)
Create a TeamException with an error status that contains the given message and throwable.

Parameters:
message - the message for the exception
e - an associated exception
Since:
3.0

TeamException

public TeamException(
String message)
Create a TeamException with an error status that contains the given message.

Parameters:
message - the message for the exception

TeamException

protected TeamException(
CoreException e)
Create a TeamException that wraps the given CoreException

Parameters:
e - a CoreException
Since:
3.0
Method Detail

asTeamException

public static 
TeamException asTeamException(
CoreException e)
Return a TeamException for the given exception.

Parameters:
e - an exception
Returns:
a TeamException for the given exception
Since:
3.0

asTeamException

public static 
TeamException asTeamException(
InvocationTargetException e)
Return a TeamException for the given exception.

Parameters:
e - an exception
Returns:
a TeamException for the given exception
Since:
3.0

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire