1 48 49 package org.jpublish.exception; 50 51 import org.jpublish.RequestContext; 52 53 60 61 public class ExceptionWrapper { 62 63 private Throwable error = null; 64 private boolean consumed = false; 65 private RequestContext context = null; 66 67 72 73 public ExceptionWrapper(Throwable error) { 74 this(error, null); 75 } 76 77 83 84 public ExceptionWrapper(Throwable error, RequestContext context) { 85 this.error = error; 86 this.context = context; 87 } 88 89 94 95 public Throwable getError() { 96 return error; 97 } 98 99 105 106 public boolean isConsumed() { 107 return consumed; 108 } 109 110 115 116 public void setConsumed(boolean consumed) { 117 this.consumed = consumed; 118 } 119 120 126 127 public RequestContext getContext() { 128 return context; 129 } 130 131 } 132 | Popular Tags |