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 Form| Constructor 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, getMessageKeyaddSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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 © 2019 Atlassian. All rights reserved.