public class

NoSuchCommitException

extends NoSuchEntityException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.bitbucket.ServiceException
           ↳ com.atlassian.bitbucket.NoSuchEntityException
             ↳ com.atlassian.bitbucket.commit.NoSuchCommitException

Class Overview

Indicates no commit exists with the specified ID.

Summary

Public Constructors
NoSuchCommitException(KeyedMessage keyedMessage, String commitId)
Public Methods
@Nonnull String getCommitId()
Retrieves the ID for which no matching commit was found.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NoSuchCommitException (KeyedMessage keyedMessage, String commitId)

Public Methods

@Nonnull public String getCommitId ()

Retrieves the ID for which no matching commit was found. If a path was supplied when attempting retrieve the commit, this is the ID of the starting commit.

Returns
  • the commit ID