1 19 20 package org.openide.src; 21 22 23 public class SourceException extends Exception { 24 static final long serialVersionUID =4472081442050042697L; 25 26 public SourceException() { 27 this(null); } 29 32 public SourceException(String msg) { 33 super(msg); 34 } 35 36 public static class IO extends SourceException { 37 private java.io.IOException nestedException; 38 39 public IO(java.io.IOException cause) { 40 this.nestedException = cause; 41 } 42 43 public IO(String msg) { 44 super(msg); 45 } 46 47 51 public java.io.IOException getReason() { 52 return nestedException; 53 } 54 55 public Throwable getCause() { 56 return nestedException; 57 } 58 59 } 60 61 public static class Protection extends SourceException { 62 private Element protectionTarget; 63 64 public Protection(Element prot) { 65 this.protectionTarget = prot; 66 } 67 68 public Element getTarget() { 69 return this.protectionTarget; 70 } 71 } 72 73 76 public static class Veto extends SourceException { 77 private java.beans.PropertyVetoException reason; 78 79 public Veto(java.beans.PropertyVetoException reason) { 80 this.reason = reason; 81 } 82 83 public java.beans.PropertyVetoException getReason() { 84 return this.reason; 85 } 86 87 public Throwable getCause() { 88 return reason; 89 } 90 91 } 92 } 93 | Popular Tags |