Skip to content

Commit 2474279

Browse files
author
Fernando Gonzalez
committed
Implemented new method for get message errors
1 parent f933950 commit 2474279

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ public String getMessage() {
243243
return getPointerToViolation() + ": " + super.getMessage();
244244
}
245245

246+
public String getErrorMessage() { return super.getMessage(); }
247+
246248
/**
247249
* A JSON pointer denoting the part of the document which violates the schema. It always points
248250
* from the root of the document to the violating data fragment, therefore it always starts with

0 commit comments

Comments
 (0)