Package com.enonic.xp.content
Class ValidationError
- java.lang.Object
-
- com.enonic.xp.content.ValidationError
-
- Direct Known Subclasses:
AttachmentValidationError
,DataValidationError
public class ValidationError extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidationError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidationError.Builder
attachmentError(ValidationErrorCode errorCode, BinaryReference attachment)
static ValidationError.Builder
dataError(ValidationErrorCode errorCode, PropertyPath propertyPath)
boolean
equals(Object o)
static ValidationError.Builder
generalError(ValidationErrorCode errorCode)
List<Object>
getArgs()
ValidationErrorCode
getErrorCode()
String
getI18n()
String
getMessage()
int
hashCode()
-
-
-
Method Detail
-
getMessage
public String getMessage()
-
getErrorCode
public ValidationErrorCode getErrorCode()
-
getI18n
public String getI18n()
-
generalError
public static ValidationError.Builder generalError(ValidationErrorCode errorCode)
-
attachmentError
public static ValidationError.Builder attachmentError(ValidationErrorCode errorCode, BinaryReference attachment)
-
dataError
public static ValidationError.Builder dataError(ValidationErrorCode errorCode, PropertyPath propertyPath)
-
-