Skip to content

Commit

Permalink
Initial #1356 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 29, 2016
1 parent 7f97c5f commit c1478ac
Show file tree
Hide file tree
Showing 46 changed files with 570 additions and 244 deletions.
2 changes: 2 additions & 0 deletions release-notes/CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ William Headrick (headw01@github)
Nick Babcock (nickbabcock)
* Reported #1225: `JsonMappingException` should override getProcessor()
(2.7.5)
* Suggested #1356: Differentiate between input and code exceptions on deserialization
(2.9.0)

Andrew Joseph (apjoseph@github)
* Reported #1248: `Annotated` returns raw type in place of Generic Type in 2.7.x
Expand Down
2 changes: 2 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Project: jackson-databind

#1341: FAIL_ON_MISSING_EXTERNAL_TYPE_ID_PROPERTY
(contributed by Connor K)
#1356: Differentiate between input and code exceptions on deserialization
(suggested by Nick B)
#1369: Improve `@JsonCreator` detection via `AnnotationIntrospector`
by passing `MappingConfig`
#1371: Add `MapperFeature.INFER_CREATOR_FROM_CONSTRUCTOR_PROPERTIES` to allow
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/fasterxml/jackson/databind/DatabindContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,19 @@ public Converter<Object,Object> converterInstance(Annotated annotated,
}
return (Converter<Object,Object>) conv;
}

/*
/**********************************************************
/* Error reporting
/**********************************************************
*/

/**
* Helper method called to indicate a generic problem that stems from type
* definition(s), not input data, or input/output state; typically this
* means throwing a {@link com.fasterxml.jackson.databind.exc.InvalidDefinitionException}.
*
* @since 2.9
*/
public abstract <T> T reportBadDefinition(JavaType type, String msg) throws JsonMappingException;
}
Loading

0 comments on commit c1478ac

Please sign in to comment.