1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (1.8.0) on Sun Jul 19 11:36:49 PDT 2015 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>JsonMappingException (jackson-databind 2.6.0 API)</title> 8<meta name="date" content="2015-07-19"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="JsonMappingException (jackson-databind 2.6.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":10,"i1":10,"i2":9,"i3":9,"i4":9,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":9,"i15":9,"i16":9}; 23var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; 24var altColor = "altColor"; 25var rowColor = "rowColor"; 26var tableTab = "tableTab"; 27var activeTableTab = "activeTableTab"; 28</script> 29<noscript> 30<div>JavaScript is disabled on your browser.</div> 31</noscript> 32<!-- ========= START OF TOP NAVBAR ======= --> 33<div class="topNav"><a name="navbar.top"> 34<!-- --> 35</a> 36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 37<a name="navbar.top.firstrow"> 38<!-- --> 39</a> 40<ul class="navList" title="Navigation"> 41<li><a href="../../../../overview-summary.html">Overview</a></li> 42<li><a href="package-summary.html">Package</a></li> 43<li class="navBarCell1Rev">Class</li> 44<li><a href="class-use/JsonMappingException.html">Use</a></li> 45<li><a href="package-tree.html">Tree</a></li> 46<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 47<li><a href="../../../../index-all.html">Index</a></li> 48<li><a href="../../../../help-doc.html">Help</a></li> 49</ul> 50</div> 51<div class="subNav"> 52<ul class="navList"> 53<li><a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.None.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 54<li><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../index.html?com/fasterxml/jackson/databind/JsonMappingException.html" target="_top">Frames</a></li> 58<li><a href="JsonMappingException.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 62</ul> 63<div> 64<script type="text/javascript"><!-- 65 allClassesLink = document.getElementById("allclasses_navbar_top"); 66 if(window==top) { 67 allClassesLink.style.display = "block"; 68 } 69 else { 70 allClassesLink.style.display = "none"; 71 } 72 //--> 73</script> 74</div> 75<div> 76<ul class="subNavList"> 77<li>Summary: </li> 78<li><a href="#nested.class.summary">Nested</a> | </li> 79<li><a href="#field.summary">Field</a> | </li> 80<li><a href="#constructor.summary">Constr</a> | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li><a href="#field.detail">Field</a> | </li> 86<li><a href="#constructor.detail">Constr</a> | </li> 87<li><a href="#method.detail">Method</a></li> 88</ul> 89</div> 90<a name="skip.navbar.top"> 91<!-- --> 92</a></div> 93<!-- ========= END OF TOP NAVBAR ========= --> 94<!-- ======== START OF CLASS DATA ======== --> 95<div class="header"> 96<div class="subTitle">com.fasterxml.jackson.databind</div> 97<h2 title="Class JsonMappingException" class="title">Class JsonMappingException</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 102<li> 103<ul class="inheritance"> 104<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">java.lang.Throwable</a></li> 105<li> 106<ul class="inheritance"> 107<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">java.lang.Exception</a></li> 108<li> 109<ul class="inheritance"> 110<li><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">java.io.IOException</a></li> 111<li> 112<ul class="inheritance"> 113<li>com.fasterxml.jackson.core.JsonProcessingException</li> 114<li> 115<ul class="inheritance"> 116<li>com.fasterxml.jackson.databind.JsonMappingException</li> 117</ul> 118</li> 119</ul> 120</li> 121</ul> 122</li> 123</ul> 124</li> 125</ul> 126</li> 127</ul> 128<div class="description"> 129<ul class="blockList"> 130<li class="blockList"> 131<dl> 132<dt>All Implemented Interfaces:</dt> 133<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> 134</dl> 135<dl> 136<dt>Direct Known Subclasses:</dt> 137<dd><a href="../../../../com/fasterxml/jackson/databind/exc/InvalidFormatException.html" title="class in com.fasterxml.jackson.databind.exc">InvalidFormatException</a>, <a href="../../../../com/fasterxml/jackson/databind/exc/PropertyBindingException.html" title="class in com.fasterxml.jackson.databind.exc">PropertyBindingException</a>, <a href="../../../../com/fasterxml/jackson/databind/deser/UnresolvedForwardReference.html" title="class in com.fasterxml.jackson.databind.deser">UnresolvedForwardReference</a></dd> 138</dl> 139<hr> 140<br> 141<pre>public class <span class="typeNameLabel">JsonMappingException</span> 142extends com.fasterxml.jackson.core.JsonProcessingException</pre> 143<div class="block">Checked exception used to signal fatal problems with mapping of 144 content. 145<p> 146 One additional feature is the ability to denote relevant path 147 of references (during serialization/deserialization) to help in 148 troubleshooting.</div> 149<dl> 150<dt><span class="seeLabel">See Also:</span></dt> 151<dd><a href="../../../../serialized-form.html#com.fasterxml.jackson.databind.JsonMappingException">Serialized Form</a></dd> 152</dl> 153</li> 154</ul> 155</div> 156<div class="summary"> 157<ul class="blockList"> 158<li class="blockList"> 159<!-- ======== NESTED CLASS SUMMARY ======== --> 160<ul class="blockList"> 161<li class="blockList"><a name="nested.class.summary"> 162<!-- --> 163</a> 164<h3>Nested Class Summary</h3> 165<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 166<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 167<tr> 168<th class="colFirst" scope="col">Modifier and Type</th> 169<th class="colLast" scope="col">Class and Description</th> 170</tr> 171<tr class="altColor"> 172<td class="colFirst"><code>static class </code></td> 173<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a></span></code> 174<div class="block">Simple bean class used to contain references.</div> 175</td> 176</tr> 177</table> 178</li> 179</ul> 180<!-- =========== FIELD SUMMARY =========== --> 181<ul class="blockList"> 182<li class="blockList"><a name="field.summary"> 183<!-- --> 184</a> 185<h3>Field Summary</h3> 186<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 187<caption><span>Fields</span><span class="tabEnd"> </span></caption> 188<tr> 189<th class="colFirst" scope="col">Modifier and Type</th> 190<th class="colLast" scope="col">Field and Description</th> 191</tr> 192<tr class="altColor"> 193<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedList.html?is-external=true" title="class or interface in java.util">LinkedList</a><<a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a>></code></td> 194<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#Z:Z_path">_path</a></span></code> 195<div class="block">Path through which problem that triggering throwing of 196 this exception was reached.</div> 197</td> 198</tr> 199</table> 200<ul class="blockList"> 201<li class="blockList"><a name="fields.inherited.from.class.com.fasterxml.jackson.core.JsonProcessingException"> 202<!-- --> 203</a> 204<h3>Fields inherited from class com.fasterxml.jackson.core.JsonProcessingException</h3> 205<code>_location</code></li> 206</ul> 207</li> 208</ul> 209<!-- ======== CONSTRUCTOR SUMMARY ======== --> 210<ul class="blockList"> 211<li class="blockList"><a name="constructor.summary"> 212<!-- --> 213</a> 214<h3>Constructor Summary</h3> 215<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 216<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 217<tr> 218<th class="colOne" scope="col">Constructor and Description</th> 219</tr> 220<tr class="altColor"> 221<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#JsonMappingException-java.lang.String-">JsonMappingException</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</code> </td> 222</tr> 223<tr class="rowColor"> 224<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#JsonMappingException-java.lang.String-com.fasterxml.jackson.core.JsonLocation-">JsonMappingException</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, 225 com.fasterxml.jackson.core.JsonLocation loc)</code> </td> 226</tr> 227<tr class="altColor"> 228<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#JsonMappingException-java.lang.String-com.fasterxml.jackson.core.JsonLocation-java.lang.Throwable-">JsonMappingException</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, 229 com.fasterxml.jackson.core.JsonLocation loc, 230 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> rootCause)</code> </td> 231</tr> 232<tr class="rowColor"> 233<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#JsonMappingException-java.lang.String-java.lang.Throwable-">JsonMappingException</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, 234 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> rootCause)</code> </td> 235</tr> 236</table> 237</li> 238</ul> 239<!-- ========== METHOD SUMMARY =========== --> 240<ul class="blockList"> 241<li class="blockList"><a name="method.summary"> 242<!-- --> 243</a> 244<h3>Method Summary</h3> 245<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 246<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 247<tr> 248<th class="colFirst" scope="col">Modifier and Type</th> 249<th class="colLast" scope="col">Method and Description</th> 250</tr> 251<tr id="i0" class="altColor"> 252<td class="colFirst"><code>protected void</code></td> 253<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#Z:Z_appendPathDesc-java.lang.StringBuilder-">_appendPathDesc</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a> sb)</code> </td> 254</tr> 255<tr id="i1" class="rowColor"> 256<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 257<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#Z:Z_buildMessage--">_buildMessage</a></span>()</code> </td> 258</tr> 259<tr id="i2" class="altColor"> 260<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></td> 261<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#from-com.fasterxml.jackson.core.JsonParser-java.lang.String-">from</a></span>(com.fasterxml.jackson.core.JsonParser jp, 262 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</code> </td> 263</tr> 264<tr id="i3" class="rowColor"> 265<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></td> 266<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#from-com.fasterxml.jackson.core.JsonParser-java.lang.String-java.lang.Throwable-">from</a></span>(com.fasterxml.jackson.core.JsonParser jp, 267 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, 268 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> problem)</code> </td> 269</tr> 270<tr id="i4" class="altColor"> 271<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></td> 272<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#fromUnexpectedIOE-java.io.IOException-">fromUnexpectedIOE</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a> src)</code> 273<div class="block">Factory method used when "upgrading" an <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a> into 274 <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind"><code>JsonMappingException</code></a>: usually only needed to comply with 275 a signature.</div> 276</td> 277</tr> 278<tr id="i5" class="rowColor"> 279<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 280<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#getLocalizedMessage--">getLocalizedMessage</a></span>()</code> </td> 281</tr> 282<tr id="i6" class="altColor"> 283<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 284<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#getMessage--">getMessage</a></span>()</code> 285<div class="block">Method is overridden so that we can properly inject description 286 of problem path, if such is defined.</div> 287</td> 288</tr> 289<tr id="i7" class="rowColor"> 290<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a>></code></td> 291<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#getPath--">getPath</a></span>()</code> 292<div class="block">Method for accessing full structural path within type hierarchy 293 down to problematic property.</div> 294</td> 295</tr> 296<tr id="i8" class="altColor"> 297<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 298<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#getPathReference--">getPathReference</a></span>()</code> 299<div class="block">Method for accesing description of path that lead to the 300 problem that triggered this exception</div> 301</td> 302</tr> 303<tr id="i9" class="rowColor"> 304<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a></code></td> 305<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#getPathReference-java.lang.StringBuilder-">getPathReference</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a> sb)</code> </td> 306</tr> 307<tr id="i10" class="altColor"> 308<td class="colFirst"><code>void</code></td> 309<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#prependPath-com.fasterxml.jackson.databind.JsonMappingException.Reference-">prependPath</a></span>(<a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a> r)</code> </td> 310</tr> 311<tr id="i11" class="rowColor"> 312<td class="colFirst"><code>void</code></td> 313<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#prependPath-java.lang.Object-int-">prependPath</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> referrer, 314 int index)</code> 315<div class="block">Method called to prepend a reference information in front of 316 current path</div> 317</td> 318</tr> 319<tr id="i12" class="altColor"> 320<td class="colFirst"><code>void</code></td> 321<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#prependPath-java.lang.Object-java.lang.String-">prependPath</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> referrer, 322 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 323<div class="block">Method called to prepend a reference information in front of 324 current path</div> 325</td> 326</tr> 327<tr id="i13" class="rowColor"> 328<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 329<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#toString--">toString</a></span>()</code> </td> 330</tr> 331<tr id="i14" class="altColor"> 332<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></td> 333<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#wrapWithPath-java.lang.Throwable-com.fasterxml.jackson.databind.JsonMappingException.Reference-">wrapWithPath</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> src, 334 <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a> ref)</code> 335<div class="block">Method that can be called to either create a new JsonMappingException 336 (if underlying exception is not a JsonMappingException), or augment 337 given exception with given path/reference information.</div> 338</td> 339</tr> 340<tr id="i15" class="rowColor"> 341<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></td> 342<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#wrapWithPath-java.lang.Throwable-java.lang.Object-int-">wrapWithPath</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> src, 343 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> refFrom, 344 int index)</code> 345<div class="block">Method that can be called to either create a new JsonMappingException 346 (if underlying exception is not a JsonMappingException), or augment 347 given exception with given path/reference information.</div> 348</td> 349</tr> 350<tr id="i16" class="altColor"> 351<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></td> 352<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html#wrapWithPath-java.lang.Throwable-java.lang.Object-java.lang.String-">wrapWithPath</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> src, 353 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> refFrom, 354 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> refFieldName)</code> 355<div class="block">Method that can be called to either create a new JsonMappingException 356 (if underlying exception is not a JsonMappingException), or augment 357 given exception with given path/reference information.</div> 358</td> 359</tr> 360</table> 361<ul class="blockList"> 362<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.core.JsonProcessingException"> 363<!-- --> 364</a> 365<h3>Methods inherited from class com.fasterxml.jackson.core.JsonProcessingException</h3> 366<code>getLocation, getMessageSuffix, getOriginalMessage</code></li> 367</ul> 368<ul class="blockList"> 369<li class="blockList"><a name="methods.inherited.from.class.java.lang.Throwable"> 370<!-- --> 371</a> 372<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></h3> 373<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#addSuppressed-java.lang.Throwable-" title="class or interface in java.lang">addSuppressed</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#fillInStackTrace--" title="class or interface in java.lang">fillInStackTrace</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#getCause--" title="class or interface in java.lang">getCause</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#getStackTrace--" title="class or interface in java.lang">getStackTrace</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#getSuppressed--" title="class or interface in java.lang">getSuppressed</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#initCause-java.lang.Throwable-" title="class or interface in java.lang">initCause</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#printStackTrace--" title="class or interface in java.lang">printStackTrace</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#printStackTrace-java.io.PrintStream-" title="class or interface in java.lang">printStackTrace</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#printStackTrace-java.io.PrintWriter-" title="class or interface in java.lang">printStackTrace</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#setStackTrace-java.lang.StackTraceElement:A-" title="class or interface in java.lang">setStackTrace</a></code></li> 374</ul> 375<ul class="blockList"> 376<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 377<!-- --> 378</a> 379<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 380<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 381</ul> 382</li> 383</ul> 384</li> 385</ul> 386</div> 387<div class="details"> 388<ul class="blockList"> 389<li class="blockList"> 390<!-- ============ FIELD DETAIL =========== --> 391<ul class="blockList"> 392<li class="blockList"><a name="field.detail"> 393<!-- --> 394</a> 395<h3>Field Detail</h3> 396<a name="Z:Z_path"> 397<!-- --> 398</a> 399<ul class="blockListLast"> 400<li class="blockList"> 401<h4>_path</h4> 402<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedList.html?is-external=true" title="class or interface in java.util">LinkedList</a><<a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a>> _path</pre> 403<div class="block">Path through which problem that triggering throwing of 404 this exception was reached.</div> 405</li> 406</ul> 407</li> 408</ul> 409<!-- ========= CONSTRUCTOR DETAIL ======== --> 410<ul class="blockList"> 411<li class="blockList"><a name="constructor.detail"> 412<!-- --> 413</a> 414<h3>Constructor Detail</h3> 415<a name="JsonMappingException-java.lang.String-"> 416<!-- --> 417</a> 418<ul class="blockList"> 419<li class="blockList"> 420<h4>JsonMappingException</h4> 421<pre>public JsonMappingException(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</pre> 422</li> 423</ul> 424<a name="JsonMappingException-java.lang.String-java.lang.Throwable-"> 425<!-- --> 426</a> 427<ul class="blockList"> 428<li class="blockList"> 429<h4>JsonMappingException</h4> 430<pre>public JsonMappingException(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, 431 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> rootCause)</pre> 432</li> 433</ul> 434<a name="JsonMappingException-java.lang.String-com.fasterxml.jackson.core.JsonLocation-"> 435<!-- --> 436</a> 437<ul class="blockList"> 438<li class="blockList"> 439<h4>JsonMappingException</h4> 440<pre>public JsonMappingException(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, 441 com.fasterxml.jackson.core.JsonLocation loc)</pre> 442</li> 443</ul> 444<a name="JsonMappingException-java.lang.String-com.fasterxml.jackson.core.JsonLocation-java.lang.Throwable-"> 445<!-- --> 446</a> 447<ul class="blockListLast"> 448<li class="blockList"> 449<h4>JsonMappingException</h4> 450<pre>public JsonMappingException(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, 451 com.fasterxml.jackson.core.JsonLocation loc, 452 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> rootCause)</pre> 453</li> 454</ul> 455</li> 456</ul> 457<!-- ============ METHOD DETAIL ========== --> 458<ul class="blockList"> 459<li class="blockList"><a name="method.detail"> 460<!-- --> 461</a> 462<h3>Method Detail</h3> 463<a name="from-com.fasterxml.jackson.core.JsonParser-java.lang.String-"> 464<!-- --> 465</a> 466<ul class="blockList"> 467<li class="blockList"> 468<h4>from</h4> 469<pre>public static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a> from(com.fasterxml.jackson.core.JsonParser jp, 470 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</pre> 471</li> 472</ul> 473<a name="from-com.fasterxml.jackson.core.JsonParser-java.lang.String-java.lang.Throwable-"> 474<!-- --> 475</a> 476<ul class="blockList"> 477<li class="blockList"> 478<h4>from</h4> 479<pre>public static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a> from(com.fasterxml.jackson.core.JsonParser jp, 480 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg, 481 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> problem)</pre> 482</li> 483</ul> 484<a name="fromUnexpectedIOE-java.io.IOException-"> 485<!-- --> 486</a> 487<ul class="blockList"> 488<li class="blockList"> 489<h4>fromUnexpectedIOE</h4> 490<pre>public static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a> fromUnexpectedIOE(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a> src)</pre> 491<div class="block">Factory method used when "upgrading" an <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a> into 492 <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind"><code>JsonMappingException</code></a>: usually only needed to comply with 493 a signature.</div> 494<dl> 495<dt><span class="simpleTagLabel">Since:</span></dt> 496<dd>2.1</dd> 497</dl> 498</li> 499</ul> 500<a name="wrapWithPath-java.lang.Throwable-java.lang.Object-java.lang.String-"> 501<!-- --> 502</a> 503<ul class="blockList"> 504<li class="blockList"> 505<h4>wrapWithPath</h4> 506<pre>public static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a> wrapWithPath(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> src, 507 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> refFrom, 508 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> refFieldName)</pre> 509<div class="block">Method that can be called to either create a new JsonMappingException 510 (if underlying exception is not a JsonMappingException), or augment 511 given exception with given path/reference information. 512 513 This version of method is called when the reference is through a 514 non-indexed object, such as a Map or POJO/bean.</div> 515</li> 516</ul> 517<a name="wrapWithPath-java.lang.Throwable-java.lang.Object-int-"> 518<!-- --> 519</a> 520<ul class="blockList"> 521<li class="blockList"> 522<h4>wrapWithPath</h4> 523<pre>public static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a> wrapWithPath(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> src, 524 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> refFrom, 525 int index)</pre> 526<div class="block">Method that can be called to either create a new JsonMappingException 527 (if underlying exception is not a JsonMappingException), or augment 528 given exception with given path/reference information. 529 530 This version of method is called when the reference is through an 531 index, which happens with arrays and Collections.</div> 532</li> 533</ul> 534<a name="wrapWithPath-java.lang.Throwable-com.fasterxml.jackson.databind.JsonMappingException.Reference-"> 535<!-- --> 536</a> 537<ul class="blockList"> 538<li class="blockList"> 539<h4>wrapWithPath</h4> 540<pre>public static <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a> wrapWithPath(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> src, 541 <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a> ref)</pre> 542<div class="block">Method that can be called to either create a new JsonMappingException 543 (if underlying exception is not a JsonMappingException), or augment 544 given exception with given path/reference information.</div> 545</li> 546</ul> 547<a name="getPath--"> 548<!-- --> 549</a> 550<ul class="blockList"> 551<li class="blockList"> 552<h4>getPath</h4> 553<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a>> getPath()</pre> 554<div class="block">Method for accessing full structural path within type hierarchy 555 down to problematic property.</div> 556</li> 557</ul> 558<a name="getPathReference--"> 559<!-- --> 560</a> 561<ul class="blockList"> 562<li class="blockList"> 563<h4>getPathReference</h4> 564<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getPathReference()</pre> 565<div class="block">Method for accesing description of path that lead to the 566 problem that triggered this exception</div> 567</li> 568</ul> 569<a name="getPathReference-java.lang.StringBuilder-"> 570<!-- --> 571</a> 572<ul class="blockList"> 573<li class="blockList"> 574<h4>getPathReference</h4> 575<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a> getPathReference(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a> sb)</pre> 576</li> 577</ul> 578<a name="prependPath-java.lang.Object-java.lang.String-"> 579<!-- --> 580</a> 581<ul class="blockList"> 582<li class="blockList"> 583<h4>prependPath</h4> 584<pre>public void prependPath(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> referrer, 585 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 586<div class="block">Method called to prepend a reference information in front of 587 current path</div> 588</li> 589</ul> 590<a name="prependPath-java.lang.Object-int-"> 591<!-- --> 592</a> 593<ul class="blockList"> 594<li class="blockList"> 595<h4>prependPath</h4> 596<pre>public void prependPath(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> referrer, 597 int index)</pre> 598<div class="block">Method called to prepend a reference information in front of 599 current path</div> 600</li> 601</ul> 602<a name="prependPath-com.fasterxml.jackson.databind.JsonMappingException.Reference-"> 603<!-- --> 604</a> 605<ul class="blockList"> 606<li class="blockList"> 607<h4>prependPath</h4> 608<pre>public void prependPath(<a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind">JsonMappingException.Reference</a> r)</pre> 609</li> 610</ul> 611<a name="getLocalizedMessage--"> 612<!-- --> 613</a> 614<ul class="blockList"> 615<li class="blockList"> 616<h4>getLocalizedMessage</h4> 617<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getLocalizedMessage()</pre> 618<dl> 619<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 620<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true#getLocalizedMessage--" title="class or interface in java.lang">getLocalizedMessage</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></dd> 621</dl> 622</li> 623</ul> 624<a name="getMessage--"> 625<!-- --> 626</a> 627<ul class="blockList"> 628<li class="blockList"> 629<h4>getMessage</h4> 630<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getMessage()</pre> 631<div class="block">Method is overridden so that we can properly inject description 632 of problem path, if such is defined.</div> 633<dl> 634<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 635<dd><code>getMessage</code> in class <code>com.fasterxml.jackson.core.JsonProcessingException</code></dd> 636</dl> 637</li> 638</ul> 639<a name="Z:Z_buildMessage--"> 640<!-- --> 641</a> 642<ul class="blockList"> 643<li class="blockList"> 644<h4>_buildMessage</h4> 645<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> _buildMessage()</pre> 646</li> 647</ul> 648<a name="toString--"> 649<!-- --> 650</a> 651<ul class="blockList"> 652<li class="blockList"> 653<h4>toString</h4> 654<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> 655<dl> 656<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 657<dd><code>toString</code> in class <code>com.fasterxml.jackson.core.JsonProcessingException</code></dd> 658</dl> 659</li> 660</ul> 661<a name="Z:Z_appendPathDesc-java.lang.StringBuilder-"> 662<!-- --> 663</a> 664<ul class="blockListLast"> 665<li class="blockList"> 666<h4>_appendPathDesc</h4> 667<pre>protected void _appendPathDesc(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a> sb)</pre> 668</li> 669</ul> 670</li> 671</ul> 672</li> 673</ul> 674</div> 675</div> 676<!-- ========= END OF CLASS DATA ========= --> 677<!-- ======= START OF BOTTOM NAVBAR ====== --> 678<div class="bottomNav"><a name="navbar.bottom"> 679<!-- --> 680</a> 681<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 682<a name="navbar.bottom.firstrow"> 683<!-- --> 684</a> 685<ul class="navList" title="Navigation"> 686<li><a href="../../../../overview-summary.html">Overview</a></li> 687<li><a href="package-summary.html">Package</a></li> 688<li class="navBarCell1Rev">Class</li> 689<li><a href="class-use/JsonMappingException.html">Use</a></li> 690<li><a href="package-tree.html">Tree</a></li> 691<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 692<li><a href="../../../../index-all.html">Index</a></li> 693<li><a href="../../../../help-doc.html">Help</a></li> 694</ul> 695</div> 696<div class="subNav"> 697<ul class="navList"> 698<li><a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.None.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 699<li><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 700</ul> 701<ul class="navList"> 702<li><a href="../../../../index.html?com/fasterxml/jackson/databind/JsonMappingException.html" target="_top">Frames</a></li> 703<li><a href="JsonMappingException.html" target="_top">No Frames</a></li> 704</ul> 705<ul class="navList" id="allclasses_navbar_bottom"> 706<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 707</ul> 708<div> 709<script type="text/javascript"><!-- 710 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 711 if(window==top) { 712 allClassesLink.style.display = "block"; 713 } 714 else { 715 allClassesLink.style.display = "none"; 716 } 717 //--> 718</script> 719</div> 720<div> 721<ul class="subNavList"> 722<li>Summary: </li> 723<li><a href="#nested.class.summary">Nested</a> | </li> 724<li><a href="#field.summary">Field</a> | </li> 725<li><a href="#constructor.summary">Constr</a> | </li> 726<li><a href="#method.summary">Method</a></li> 727</ul> 728<ul class="subNavList"> 729<li>Detail: </li> 730<li><a href="#field.detail">Field</a> | </li> 731<li><a href="#constructor.detail">Constr</a> | </li> 732<li><a href="#method.detail">Method</a></li> 733</ul> 734</div> 735<a name="skip.navbar.bottom"> 736<!-- --> 737</a></div> 738<!-- ======== END OF BOTTOM NAVBAR ======= --> 739<p class="legalCopy"><small>Copyright © 2014–2015 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 740</body> 741</html> 742