Class RepositoryHookVetoedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.bitbucket.ServiceException
com.atlassian.bitbucket.hook.repository.RepositoryHookVetoedException
- All Implemented Interfaces:
Serializable
Exception that can be thrown when one or more
repository-hook
modules reject a proposed ref changes. Note
that RepositoryHookService.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.- Since:
- 5.0
- See Also:
-
Constructor Summary
ConstructorDescriptionRepositoryHookVetoedException
(KeyedMessage message, RepositoryHookRequest request, List<RepositoryHookVeto> vetoes) -
Method Summary
Methods inherited from class com.atlassian.bitbucket.ServiceException
getKeyedMessage, getLocalizedMessage, getMessageKey
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RepositoryHookVetoedException
public RepositoryHookVetoedException(@Nonnull KeyedMessage message, @Nonnull RepositoryHookRequest request, @Nonnull List<RepositoryHookVeto> vetoes)
-
-
Method Details
-
getRequest
- Type Parameters:
T
- type of request- Returns:
- the request that was rejected
-
getVetoes
- Returns:
- the reasons for rejecting the request
-