public class ValidationError extends Object
ValidationError contains information about the error| Constructor | Description |
|---|---|
ValidationError(int code,
String details) |
Error constructor for File-error type
|
ValidationError(int code,
String details,
boolean isFileError) |
Error constructor for File-error type with isFileError option
|
ValidationError(int code,
String details,
Element element) |
Error constructor for recordError type
|
ValidationError(int code,
String docRefId,
String details,
Element element) |
General constructor.
|
ValidationError(int code,
String docRedId,
String details,
String path) |
General constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getCode() |
|
String |
getDetails() |
|
String |
getDocRefId() |
|
String |
getPath() |
|
boolean |
isFileError() |
public ValidationError(int code,
String details)
code - the code of the errordetails - the detail message for the errorpublic ValidationError(int code,
String details,
boolean isFileError)
code - the code of the errordetails - the detail message for the errorisFileError - true if the error is the file itselfpublic ValidationError(int code,
String details,
Element element)
code - the code of the errordetails - the detail message for the errorelement - the element responsible for the errorpublic ValidationError(int code,
String docRefId,
String details,
Element element)
code - the code of the errordocRefId - the docRefId of the group of elements responsible for the errordetails - the detail message of the errorelement - the element responsible for the errorpublic ValidationError(int code,
String docRedId,
String details,
String path)
code - the code of the errordocRedId - the docRefId of the group of elements responsible for the errordetails - the detail message of the errorpath - the xPath to the field that has the errorpublic int getCode()
public String getDetails()
public String getDocRefId()
public String getPath()
public boolean isFileError()
Copyright © 2025. All rights reserved.