Skip to content

Commit 954678f

Browse files
committed
added some javadoc to ValidationException#getPointerToViolation()
1 parent 349616a commit 954678f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/src/main/java/org/everit/json/schema/ValidationException.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ public String getMessage() {
162162
return getPointerToViolation() + ": " + super.getMessage();
163163
}
164164

165+
/**
166+
* A JSON pointer denoting the part of the document which violates the schema. It always points
167+
* from the root of the document to the violating data fragment, therefore it always starts with
168+
* <code>#</code>.
169+
*
170+
* @return the JSON pointer
171+
*/
165172
public String getPointerToViolation() {
166173
return pointerToViolation.toString();
167174
}

0 commit comments

Comments
 (0)