Lines Matching refs:ExceptionWithContext
25 public class ExceptionWithContext extends RuntimeException {
32 * {@link ExceptionWithContext}, or a newly-constructed exception if it
39 public static ExceptionWithContext withContext(Throwable ex, String str) {
40 ExceptionWithContext ewc;
42 if (ex instanceof ExceptionWithContext) {
43 ewc = (ExceptionWithContext) ex;
45 ewc = new ExceptionWithContext(ex);
57 public ExceptionWithContext(String message) {
66 public ExceptionWithContext(Throwable cause) {
76 public ExceptionWithContext(String message, Throwable cause) {
81 if (cause instanceof ExceptionWithContext) {
82 String ctx = ((ExceptionWithContext) cause).context.toString();