Skip to content

Commit

Permalink
Update related to JacksonException refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 12, 2024
1 parent d29019f commit 1f2f8cb
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,43 +64,4 @@ protected JSONObjectException with(JsonParser p) {
_processor = p;
return this;
}

/*
/**********************************************************************
/* Overridden methods
/**********************************************************************
*/

@Override
public String getLocalizedMessage() {
return _buildMessage();
}

/**
* Method is overridden so that we can properly inject description
* of problem path, if such is defined.
*/
@Override
public String getMessage() {
return _buildMessage();
}

protected String _buildMessage()
{
String msg = super.getMessage();
if (_path == null) {
return msg;
}
StringBuilder sb = (msg == null) ? new StringBuilder() : new StringBuilder(msg);
sb.append(" (through reference chain: ");
sb = getPathReference(sb);
sb.append(')');
return sb.toString();
}

@Override
public String toString()
{
return getClass().getName()+": "+getMessage();
}
}

0 comments on commit 1f2f8cb

Please sign in to comment.