private static TraceInformation getOrAddTraceInformation(Throwable t) { if (t == null) { throw new NullPointerException("t is null"); } Throwable c; while (! (t instanceof TraceInformation)) { c = t.getCause(); if (c == null) try { t.initCause(c = new TraceInformation()); } catch (RuntimeException e) { // ignored } t = c; } return (TraceInformation) t; }
private static TraceInformation getOrAddTraceInformation(Throwable t) { if (t == null) { throw new NullPointerException("t is null"); } Throwable c; while (! (t instanceof TraceInformation)) { c = t.getCause(); if (c == null) try { t.initCause(c = new TraceInformation()); } catch (RuntimeException e) { // ignored } t = c; } return (TraceInformation) t; }
private static TraceInformation getOrAddTraceInformation(Throwable t) { if (t == null) { throw new NullPointerException("t is null"); } Throwable c; while (! (t instanceof TraceInformation)) { c = t.getCause(); if (c == null) try { t.initCause(c = new TraceInformation()); } catch (RuntimeException e) { // ignored } t = c; } return (TraceInformation) t; }
private static TraceInformation getOrAddTraceInformation(Throwable t) { if (t == null) { throw new NullPointerException("t is null"); } Throwable c; while (! (t instanceof TraceInformation)) { c = t.getCause(); if (c == null) try { t.initCause(c = new TraceInformation()); } catch (RuntimeException e) { // ignored } t = c; } return (TraceInformation) t; }
private static TraceInformation getOrAddTraceInformation(Throwable t) { if (t == null) { throw new NullPointerException("t is null"); } Throwable c; while (! (t instanceof TraceInformation)) { c = t.getCause(); if (c == null) try { t.initCause(c = new TraceInformation()); } catch (RuntimeException e) { // ignored } t = c; } return (TraceInformation) t; }
private static TraceInformation getOrAddTraceInformation(Throwable t) { if (t == null) { throw new NullPointerException("t is null"); } Throwable c; while (! (t instanceof TraceInformation)) { c = t.getCause(); if (c == null) try { t.initCause(c = new TraceInformation()); } catch (RuntimeException e) { // ignored } t = c; } return (TraceInformation) t; }