public class RepositoryHookVetoedException extends ServiceException
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.RepositoryHookService.preUpdate(RepositoryHookRequest)
,
Serialized FormConstructor and Description |
---|
RepositoryHookVetoedException(KeyedMessage message,
RepositoryHookRequest request,
List<RepositoryHookVeto> vetoes) |
Modifier and Type | Method and Description |
---|---|
<T extends RepositoryHookRequest> |
getRequest() |
List<RepositoryHookVeto> |
getVetoes() |
getKeyedMessage, getLocalizedMessage, getMessageKey
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RepositoryHookVetoedException(@Nonnull KeyedMessage message, @Nonnull RepositoryHookRequest request, @Nonnull List<RepositoryHookVeto> vetoes)
@Nonnull public <T extends RepositoryHookRequest> T getRequest()
T
- type of request@Nonnull public List<RepositoryHookVeto> getVetoes()
Copyright © 2022 Atlassian. All rights reserved.