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 classValidationError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidationError.BuilderattachmentError(ValidationErrorCode errorCode, BinaryReference attachment)static ValidationError.BuilderdataError(ValidationErrorCode errorCode, PropertyPath propertyPath)booleanequals(Object o)static ValidationError.BuildergeneralError(ValidationErrorCode errorCode)List<Object>getArgs()ValidationErrorCodegetErrorCode()StringgetI18n()StringgetMessage()inthashCode()
-
-
-
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)
-
-