public abstract class

ScmException

extends ServiceException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.bitbucket.ServiceException
           ↳ com.atlassian.bitbucket.scm.ScmException
Known Direct Subclasses

Class Overview

Base class for exceptions thrown by the ScmService and other SCM components.

Plugin developers providing SCM implementations are encouraged to derive exceptions which will be propagated beyond their implementation boundaries from this exception.

Summary

Protected Constructors
ScmException(KeyedMessage message, String scmId)
ScmException(KeyedMessage message, Throwable cause, String scmId)
Public Methods
@Nonnull String getScmId()
Retrieves the unique identifier for the SCM from which, or for which, this exception was thrown.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Protected Constructors

protected ScmException (KeyedMessage message, String scmId)

protected ScmException (KeyedMessage message, Throwable cause, String scmId)

Public Methods

@Nonnull public String getScmId ()

Retrieves the unique identifier for the SCM from which, or for which, this exception was thrown.

Returns
  • the SCM identifier