Package org.xwiki.validator
Class ValidationError
- java.lang.Object
-
- org.xwiki.validator.ValidationError
-
public class ValidationError extends Object
Validation error.- Version:
- $Id: cf21a94176604e8190c2e2e0d01b193dc6a9e1ba $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidationError.Type
Error types.
-
Constructor Summary
Constructors Constructor Description ValidationError(ValidationError.Type type, int line, int column, String message)
Constructor.ValidationError(ValidationError.Type type, SAXParseException e)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
int
getLine()
String
getMessage()
ValidationError.Type
getType()
String
toString()
-
-
-
Constructor Detail
-
ValidationError
public ValidationError(ValidationError.Type type, int line, int column, String message)
Constructor.- Parameters:
type
- error typeline
- line where the error occurredcolumn
- column where the error occurredmessage
- message of the error
-
ValidationError
public ValidationError(ValidationError.Type type, SAXParseException e)
Constructor.- Parameters:
type
- error typee
- source exception
-
-
Method Detail
-
getType
public ValidationError.Type getType()
- Returns:
- error type
-
getLine
public int getLine()
- Returns:
- line where the error occurred
-
getColumn
public int getColumn()
- Returns:
- column where the error occurred
-
getMessage
public String getMessage()
- Returns:
- message of the error
-
-