1 7 8 package org.jdesktop.swing.binding; 9 10 17 public class BindException extends Exception { 18 19 23 public BindException(Object dataModel) { 24 this("could not bind to "+dataModel.getClass().getName()); 25 } 26 27 32 public BindException(Object dataModel, Throwable cause) { 33 this("could not bind to "+dataModel.getClass().getName(), cause); 34 } 35 36 42 public BindException(Object dataModel, String fieldName) { 43 this("could not bind to field"+fieldName+" on "+dataModel.getClass().getName()); 44 } 45 46 53 public BindException(Object dataModel, String fieldName, Throwable cause) { 54 this("could not bind to field"+fieldName+" on "+dataModel.getClass().getName(), 55 cause); 56 } 57 58 59 63 public BindException(String message) { 64 super(message); 65 } 66 67 72 public BindException(String message, Throwable cause) { 73 super(message, cause); 74 } 75 76 } 77 | Popular Tags |