File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
core/src/main/java/org/everit/json/schema Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -260,12 +260,27 @@ public List<ValidationException> getCausingExceptions() {
260
260
return causingExceptions ;
261
261
}
262
262
263
+ /**
264
+ * Returns a programmer-readable error description prepended by {@link #getPointerToViolation()
265
+ * the pointer to the violating fragment} of the JSON document.
266
+ *
267
+ * @return the error description
268
+ */
263
269
@ Override
264
270
public String getMessage () {
265
271
return getPointerToViolation () + ": " + super .getMessage ();
266
272
}
267
273
268
- public String getErrorMessage () { return super .getMessage (); }
274
+ /**
275
+ * Returns a programmer-readable error description. Unlike {@link #getMessage()} this doesn't
276
+ * contain the JSON pointer denoting the violating document fragment.
277
+ *
278
+ *
279
+ * @return the error description
280
+ */
281
+ public String getErrorMessage () {
282
+ return super .getMessage ();
283
+ }
269
284
270
285
/**
271
286
* A JSON pointer denoting the part of the document which violates the schema. It always points
You can’t perform that action at this time.
0 commit comments