Class TeamStatus

  • All Implemented Interfaces:
    IStatus, ITeamStatus

    public class TeamStatus
    extends Status
    implements ITeamStatus
    Status that is returned from some Team operations or is the payload of some TeamExceptions.
    • Constructor Detail

      • TeamStatus

        public TeamStatus​(int severity,
                          String pluginId,
                          int code,
                          String message,
                          Throwable exception,
                          IResource resource)
        Create a new status object.
        severity - the severity; one of OK, ERROR, INFO, or WARNING
        pluginId - the unique identifier of the relevant plug-in
        code - the plug-in-specific status code, or OK
        message - a human-readable message, localized to the current locale
        exception - a low-level exception, or null if not applicable
        resource - the resource associated with the exception
    • Method Detail

      • getResource

        public IResource getResource()
        Return the resource associated with this status.
        Specified by:
        getResource in interface ITeamStatus
        Returns the resource.