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 34 public class FrameworkError extends Error implements ViewDescriptorHolder { 35 36 39 public FrameworkError() { 40 super(); 41 } 42 43 44 47 public FrameworkError(ViewDescriptor viewDesc, View view) { 48 super(); 49 50 setResponsibleViewDescriptor(viewDesc); 52 setResponsibleView(view); 53 } 54 55 56 59 public FrameworkError(Throwable ex) { 60 super(ex); 61 } 62 63 64 67 public FrameworkError(Throwable ex, ViewDescriptor viewDesc, View view) { 68 super(ex); 69 70 setResponsibleViewDescriptor(viewDesc); 72 setResponsibleView(view); 73 } 74 75 76 79 public FrameworkError(String msg) { 80 super(msg); 81 } 82 83 84 87 public FrameworkError(String msg, ViewDescriptor viewDesc, View view) { 88 super(msg); 89 90 setResponsibleViewDescriptor(viewDesc); 92 setResponsibleView(view); 93 } 94 95 96 99 public FrameworkError(String msg, Throwable ex) { 100 super(msg, ex); 101 } 102 103 104 107 public FrameworkError(String msg, Throwable ex, ViewDescriptor viewDesc, View view) { 108 super(msg, ex); 109 110 setResponsibleViewDescriptor(viewDesc); 112 setResponsibleView(view); 113 } 114 115 116 119 public void setResponsibleView(View view) { 120 _view = view; 121 } 122 123 124 127 public View getResponsibleView() { 128 return _view; 129 } 130 131 132 135 public void setResponsibleViewDescriptor(ViewDescriptor viewDesc) { 136 _viewDesc = viewDesc; 137 } 138 139 140 145 public ViewDescriptor getResponsibleViewDescriptor() { 146 return _viewDesc; 147 } 148 149 150 private View _view = null; 151 private ViewDescriptor _viewDesc = null; 152 } 153 | Popular Tags |