1 23 24 package com.sun.enterprise.tools.guiframework.exception; 25 26 import com.iplanet.jato.view.View; 27 28 import com.sun.enterprise.tools.guiframework.view.descriptors.ViewDescriptor; 29 30 31 public class FrameworkException extends RuntimeException implements ViewDescriptorHolder { 32 33 36 public FrameworkException(String msg, Throwable ex, ViewDescriptor viewDesc, View view) { 37 super(msg, ex); 38 39 setResponsibleViewDescriptor(viewDesc); 41 setResponsibleView(view); 42 } 43 44 45 48 public FrameworkException() { 49 super(); 50 } 51 52 53 56 public FrameworkException(ViewDescriptor viewDesc, View view) { 57 super(); 58 59 setResponsibleViewDescriptor(viewDesc); 61 setResponsibleView(view); 62 } 63 64 65 68 public FrameworkException(Throwable ex) { 69 super(ex); 70 } 71 72 73 76 public FrameworkException(Throwable ex, ViewDescriptor viewDesc, View view) { 77 super(ex); 78 79 setResponsibleViewDescriptor(viewDesc); 81 setResponsibleView(view); 82 } 83 84 85 88 public FrameworkException(String msg) { 89 super(msg); 90 } 91 92 93 96 public FrameworkException(String msg, ViewDescriptor viewDesc, View view) { 97 super(msg); 98 99 setResponsibleViewDescriptor(viewDesc); 101 setResponsibleView(view); 102 } 103 104 105 108 public FrameworkException(String msg, Throwable ex) { 109 super(msg, ex); 110 } 111 112 113 116 public void setResponsibleView(View view) { 117 _view = view; 118 } 119 120 121 124 public View getResponsibleView() { 125 return _view; 126 } 127 128 129 132 public void setResponsibleViewDescriptor(ViewDescriptor viewDesc) { 133 _viewDesc = viewDesc; 134 } 135 136 137 142 public ViewDescriptor getResponsibleViewDescriptor() { 143 return _viewDesc; 144 } 145 146 147 private View _view = null; 148 private ViewDescriptor _viewDesc = null; 149 } 150 | Popular Tags |