Java Code Examples for java.lang.NullPointerException#setStackTrace()
The following examples show how to use
java.lang.NullPointerException#setStackTrace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UndertowServletMessages_$bundle.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public final NullPointerException listenerCannotBeNull() { final NullPointerException result = new NullPointerException(String.format(getLoggingLocale(), listenerCannotBeNull$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; }
Example 2
Source File: UndertowServletMessages_$bundle.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public final NullPointerException nullName() { final NullPointerException result = new NullPointerException(String.format(getLoggingLocale(), nullName$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; }
Example 3
Source File: UndertowServletMessages_$bundle.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public final NullPointerException headerNameWasNull() { final NullPointerException result = new NullPointerException(String.format(getLoggingLocale(), headerNameWasNull$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; }
Example 4
Source File: UndertowServletMessages_$bundle.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public final NullPointerException paramCannotBeNullNPE(final String name) { final NullPointerException result = new NullPointerException(String.format(getLoggingLocale(), paramCannotBeNullNPE$str(), name)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; }