public class

RepositoryHookVetoedException

extends ServiceException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.bitbucket.ServiceException
           ↳ com.atlassian.bitbucket.hook.repository.RepositoryHookVetoedException

Class Overview

Exception that can be thrown when one or more repository-hook modules reject a proposed ref changes. Note that preUpdate(RepositoryHookRequest) does not throw this exception. However, code that invokes the hooks may throw this exception after one or more hooks have rejected the exception.

Summary

Public Constructors
RepositoryHookVetoedException(KeyedMessage message, RepositoryHookRequest request, List<RepositoryHookVeto> vetoes)
Public Methods
@Nonnull <T extends RepositoryHookRequest> T getRequest()
@Nonnull List<RepositoryHookVeto> getVetoes()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public RepositoryHookVetoedException (KeyedMessage message, RepositoryHookRequest request, List<RepositoryHookVeto> vetoes)

Public Methods

@Nonnull public T getRequest ()

Returns
  • the request that was rejected

@Nonnull public List<RepositoryHookVeto> getVetoes ()

Returns
  • the reasons for rejecting the request