public static class ValidationResult.SimpleValidationResult extends Object implements ValidationResult
ValidationResult.SimpleValidationResult
Modifier and Type | Method and Description |
---|---|
Optional<ErrorLevel> |
getErrorLevel()
Returns optional error level for this validation result.
|
String |
getErrorMessage()
Returns the result message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, error, isError, ok
public String getErrorMessage()
ValidationResult
Throws an IllegalStateException
if the result represents success.
getErrorMessage
in interface ValidationResult
public Optional<ErrorLevel> getErrorLevel()
ValidationResult
Note: By default ErrorLevel.INFO
and
ErrorLevel.WARNING
are not considered to be blocking the
validation and conversion chain.
getErrorLevel
in interface ValidationResult
ValidationResult.isError()
Copyright © 2025. All rights reserved.