@@ -1022,7 +1022,7 @@ public void writeValue(JsonGenerator g, Object value) throws IOException
1022
1022
* JSON output, written to File provided.
1023
1023
*/
1024
1024
public void writeValue (File resultFile , Object value )
1025
- throws IOException , StreamWriteException , JsonMappingException
1025
+ throws IOException , StreamWriteException , DatabindException
1026
1026
{
1027
1027
_writeValueAndClose (createGenerator (resultFile , JsonEncoding .UTF8 ), value );
1028
1028
}
@@ -1039,7 +1039,7 @@ public void writeValue(File resultFile, Object value)
1039
1039
* is closed).
1040
1040
*/
1041
1041
public void writeValue (OutputStream out , Object value )
1042
- throws IOException , StreamWriteException , JsonMappingException
1042
+ throws IOException , StreamWriteException , DatabindException
1043
1043
{
1044
1044
_writeValueAndClose (createGenerator (out , JsonEncoding .UTF8 ), value );
1045
1045
}
@@ -1055,7 +1055,7 @@ public void writeValue(OutputStream out, Object value)
1055
1055
* is closed).
1056
1056
*/
1057
1057
public void writeValue (Writer w , Object value )
1058
- throws IOException , StreamWriteException , JsonMappingException
1058
+ throws IOException , StreamWriteException , DatabindException
1059
1059
{
1060
1060
_writeValueAndClose (createGenerator (w ), value );
1061
1061
}
@@ -1064,7 +1064,7 @@ public void writeValue(Writer w, Object value)
1064
1064
* @since 2.8
1065
1065
*/
1066
1066
public void writeValue (DataOutput out , Object value )
1067
- throws IOException , StreamWriteException , JsonMappingException
1067
+ throws IOException , StreamWriteException , DatabindException
1068
1068
{
1069
1069
_writeValueAndClose (createGenerator (out ), value );
1070
1070
}
@@ -1135,7 +1135,8 @@ public byte[] writeValueAsBytes(Object value)
1135
1135
*
1136
1136
* @since 2.2
1137
1137
*/
1138
- public void acceptJsonFormatVisitor (JavaType type , JsonFormatVisitorWrapper visitor ) throws JsonMappingException
1138
+ public void acceptJsonFormatVisitor (JavaType type , JsonFormatVisitorWrapper visitor )
1139
+ throws JsonMappingException
1139
1140
{
1140
1141
_assertNotNull ("type" , type );
1141
1142
_assertNotNull ("visitor" , visitor );
@@ -1145,7 +1146,9 @@ public void acceptJsonFormatVisitor(JavaType type, JsonFormatVisitorWrapper visi
1145
1146
/**
1146
1147
* Since 2.6
1147
1148
*/
1148
- public void acceptJsonFormatVisitor (Class <?> type , JsonFormatVisitorWrapper visitor ) throws JsonMappingException {
1149
+ public void acceptJsonFormatVisitor (Class <?> type , JsonFormatVisitorWrapper visitor )
1150
+ throws JsonMappingException
1151
+ {
1149
1152
_assertNotNull ("type" , type );
1150
1153
_assertNotNull ("visitor" , visitor );
1151
1154
acceptJsonFormatVisitor (_config .constructType (type ), visitor );
@@ -1482,7 +1485,7 @@ public Prefetch forRootType(ObjectWriter parent, JavaType newType) {
1482
1485
((TypeWrappedSerializer ) ser ).typeSerializer ());
1483
1486
}
1484
1487
return new Prefetch (newType , ser , null );
1485
- } catch (JsonMappingException e ) {
1488
+ } catch (DatabindException e ) {
1486
1489
// need to swallow?
1487
1490
;
1488
1491
}
0 commit comments