コード例 #1
0
 /** Helper method for constructing generic mapping exception for specified type */
 public JsonMappingException mappingException(Class<?> targetClass) {
   return mappingException(targetClass, _parser.getCurrentToken());
 }
コード例 #2
-1
 /** Helper method for indicating that the current token was expected to be another token. */
 public JsonMappingException wrongTokenException(JsonParser jp, JsonToken expToken, String msg) {
   return JsonMappingException.from(
       jp, "Unexpected token (" + jp.getCurrentToken() + "), expected " + expToken + ": " + msg);
 }