@Override
    public String getMessage()
    {
        String msg = super.getMessage();
        if (msg == null) {
            msg = "N/A";
        }
        JsonLocation loc = getLocation();
        if (loc != null) {
            StringBuilder sb = new StringBuilder();
            sb.append(msg);
            sb.append('\n');
            sb.append(" at ");
            sb.append(loc.toString());
            return sb.toString();
        }
        return msg;
    }
@ Override public String getMessage ( ) { String msg = super . getMessage ( ) ; if ( msg == null ) { msg = "N/A" ; } JsonLocation loc = getLocation ( ) ; if ( loc != null ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( msg ) ; sb . append ( '\n' ) ; sb . append ( " at " ) ; sb . append ( loc . toString ( ) ) ; return sb . toString ( ) ; } return msg ; }
Default method overridden so that we can add location information