Class 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:
  • Field Details

  • Constructor Details

    • 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 Details

    • 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