@ExperimentalApi public class RestValidationResult extends Object implements ValidationResult
ValidationResult
.Constructor and Description |
---|
RestValidationResult(ValidationResult that) |
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
|
String |
toString() |
public RestValidationResult(ValidationResult that)
public boolean isAuthorized()
isAuthorized
in interface ValidationResult
public boolean isValid()
isValid
in interface ValidationResult
public Iterable<ValidationError> getErrors()
getErrors
in interface ValidationResult
public ServiceException throwIfInvalid(String msg) throws ServiceException
ValidationResult
throwIfInvalid
in interface ValidationResult
ServiceException
public ServiceException throwIfInvalid() throws ServiceException
ValidationResult
first validation error will be used as message string
throwIfInvalid
in interface ValidationResult
All implementations do not conform to specifications and return null. Either the implementation or the javadoc needs to be updated.
ServiceException
Copyright © 2003–2016 Atlassian. All rights reserved.