1 18 19 package sync4j.framework.tools.beans; 20 21 import java.beans.ExceptionListener ; 22 23 import java.lang.Exception ; 24 25 29 public class BeanExceptionListener implements ExceptionListener { 30 31 private Exception exc = null; 32 33 public void exceptionThrown(Exception excTh) { 34 if (!exceptionThrown()) 35 exc = excTh; 36 } 37 38 public Exception getException() { 39 return exc; 40 } 41 42 public boolean exceptionThrown() { 43 return (exc != null); 44 } 45 } | Popular Tags |