Created
November 8, 2012 23:25
-
-
Save esammer/4042578 to your computer and use it in GitHub Desktop.
No description fully describes what this is.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
} catch (NullPointerException e) { | |
throw npe(e, " of "+schema.getFullName()); | |
} | |
} | |
/** Helper method for adding a message to an NPE. */ | |
protected NullPointerException npe(NullPointerException e, String s) { | |
NullPointerException result = new NullPointerException(e.getMessage()+s); | |
result.initCause(e.getCause() == null ? e : e.getCause()); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment