1 23 24 package com.sun.enterprise.tools.guiframework.view.event; 25 26 import com.iplanet.jato.view.View; 27 import com.iplanet.jato.view.ViewBean; 28 29 import com.sun.enterprise.tools.guiframework.view.descriptors.ViewDescriptor; 30 31 import java.util.EventObject ; 32 33 34 39 public class ErrorEvent extends EventObject { 40 41 58 public ErrorEvent(View src, ViewDescriptor desc, ViewBean vb, Throwable ex, 59 View causeView, ViewDescriptor causeDesc, String exMsg, 60 String exClass, String causeMsg, String causeClass, 61 String fullTrace, String regTrace) { 62 super((src == null) ? (Object )((desc == null) ? (Object )"" : (Object )desc) : (Object )src); 63 setView(src); 64 setViewDescriptor(desc); 65 setViewBean(vb); 66 setException(ex); 67 setCauseView(causeView); 68 setCauseViewDescriptor(causeDesc); 69 setExceptionMessage(exMsg); 70 setExceptionClassName(exClass); 71 setCauseMessage(causeMsg); 72 setCauseClassName(causeClass); 73 setFullTrace(fullTrace); 74 setRegularTrace(regTrace); 75 } 76 77 78 81 protected void setView(View view) { 82 _view = view; 83 } 84 85 86 95 public View getView() { 96 return _view; 97 } 98 99 100 106 protected void setViewDescriptor(ViewDescriptor viewDesc) { 107 _viewDesc = viewDesc; 108 } 109 110 111 120 public ViewDescriptor getViewDescriptor() { 121 return _viewDesc; 122 } 123 124 125 128 protected void setViewBean(ViewBean vb) { 129 _viewBean = vb; 130 } 131 132 133 138 public ViewBean getViewBean() { 139 return _viewBean; 140 } 141 142 143 146 protected void setException(Throwable ex) { 147 _exception = ex; 148 } 149 150 151 155 public Throwable getException() { 156 return _exception; 157 } 158 159 160 163 protected void setCauseView(View causeView) { 164 _causeView = causeView; 165 } 166 167 168 175 public View getCauseView() { 176 return _causeView; 177 } 178 179 180 183 protected void setCauseViewDescriptor(ViewDescriptor causeDesc) { 184 _causeDesc = causeDesc; 185 } 186 187 188 197 public ViewDescriptor getCauseViewDescriptor() { 198 return _causeDesc; 199 } 200 201 202 205 protected void setExceptionMessage(String exMsg) { 206 _exceptionMessage = exMsg; 207 } 208 209 210 216 public String getExceptionMessage() { 217 return _exceptionMessage; 218 } 219 220 221 224 protected void setExceptionClassName(String exClass) { 225 _exceptionClass = exClass; 226 } 227 228 229 235 public String getExceptionClassName() { 236 return _exceptionClass; 237 } 238 239 240 243 protected void setCauseMessage(String causeMsg) { 244 _causeMessage = causeMsg; 245 } 246 247 248 253 public String getCauseMessage() { 254 return _causeMessage; 255 } 256 257 258 261 protected void setCauseClassName(String causeClass) { 262 _causeClass = causeClass; 263 } 264 265 266 271 public String getCauseClassName() { 272 return _causeClass; 273 } 274 275 276 279 protected void setFullTrace(String fullTrace) { 280 _fullTrace = fullTrace; 281 } 282 283 284 292 public String getFullTrace() { 293 return _fullTrace; 294 } 295 296 297 300 protected void setRegularTrace(String regTrace) { 301 _regularTrace = regTrace; 302 } 303 304 305 312 public String getRegularTrace() { 313 return _regularTrace; 314 } 315 316 317 private View _view = null; 318 private ViewDescriptor _viewDesc = null; 319 private ViewBean _viewBean = null; 320 private Throwable _exception = null; 321 private View _causeView = null; 322 private ViewDescriptor _causeDesc = null; 323 private String _exceptionMessage = null; 324 private String _exceptionClass = null; 325 private String _causeMessage = null; 326 private String _causeClass = null; 327 private String _fullTrace = null; 328 private String _regularTrace = null; 329 } 330 | Popular Tags |