@Test public void testReset() { String context = "test"; Error.push(context); Error before = Error.get("code"); Assert.assertEquals(context, before.getContext()); Error.reset(); Error after = Error.get("code"); Assert.assertEquals("", after.getContext()); }
public static void reset() { LOGGER.debug("reset"); THREAD_CONTEXT.remove(); }
Error extends RuntimeException { public static void reset() { LOGGER.debug("reset"); THREAD_CONTEXT.remove(); } }
Error extends RuntimeException { public static void reset() { LOGGER.debug("reset"); THREAD_CONTEXT.remove(); } private  Error(String errorCode, String msg); private  Error(ArrayDeque<String> context, String errorCode, String msg); }
Error extends RuntimeException { public static void reset() { LOGGER.debug("reset"); THREAD_CONTEXT.remove(); } private  Error(String errorCode, String msg); private  Error(ArrayDeque<String> context, String errorCode, String msg); static void push(String context); static void pop(); static Error get(String ctx, String errorCode, String msg); static Error get(String ctx, String errorCode, Throwable e); static Error get(String errorCode, String msg); static Error get(String errorCode, Throwable e); static Error get(Throwable e); static Error get(String errorCode); static void reset(); void pushContext(String context); void popContext(); String getErrorCode(); String getMsg(); String getContext(); JsonNode toJson(); @Override String toString(); @Override String getMessage(); static Error fromJson(JsonNode node); }
Error extends RuntimeException { public static void reset() { LOGGER.debug("reset"); THREAD_CONTEXT.remove(); } private  Error(String errorCode, String msg); private  Error(ArrayDeque<String> context, String errorCode, String msg); static void push(String context); static void pop(); static Error get(String ctx, String errorCode, String msg); static Error get(String ctx, String errorCode, Throwable e); static Error get(String errorCode, String msg); static Error get(String errorCode, Throwable e); static Error get(Throwable e); static Error get(String errorCode); static void reset(); void pushContext(String context); void popContext(); String getErrorCode(); String getMsg(); String getContext(); JsonNode toJson(); @Override String toString(); @Override String getMessage(); static Error fromJson(JsonNode node); static final char DELIMITER; }