Java Code Examples for com.fasterxml.jackson.core.JsonProcessingException#getLocalizedMessage()
The following examples show how to use
com.fasterxml.jackson.core.JsonProcessingException#getLocalizedMessage() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseDTO.java From genie with Apache License 2.0 | 5 votes |
/** * Convert this object to a string representation. * * @return This application data represented as a JSON structure */ @Override public String toString() { try { return GenieObjectMapper.getMapper().writeValueAsString(this); } catch (final JsonProcessingException ioe) { return ioe.getLocalizedMessage(); } }
Example 2
Source File: BaseSearchResult.java From genie with Apache License 2.0 | 5 votes |
/** * Convert this object to a string representation. * * @return This application data represented as a JSON structure */ @Override public String toString() { try { return GenieObjectMapper.getMapper().writeValueAsString(this); } catch (final JsonProcessingException ioe) { return ioe.getLocalizedMessage(); } }