@ExperimentalApi
public interface ValidationResult
Modifier and Type | Method and Description |
---|---|
Iterable<ValidationError> |
getErrors() |
boolean |
isAuthorized() |
boolean |
isValid() |
ServiceException |
throwIfInvalid()
converts this validation result into an Exception and throws it
|
ServiceException |
throwIfInvalid(String msg)
converts this validation result into an Exception and throws it
|
boolean isAuthorized()
boolean isValid()
Iterable<ValidationError> getErrors()
ServiceException throwIfInvalid(String msg) throws ServiceException
ServiceException
ServiceException throwIfInvalid() throws ServiceException
first validation error will be used as message string
ServiceException
Copyright © 2003–2015 Atlassian. All rights reserved.