1 15 package org.apache.tapestry; 16 17 import org.apache.hivemind.ApplicationRuntimeException; 18 import org.apache.hivemind.HiveMind; 19 import org.apache.hivemind.Location; 20 21 28 29 public class BindingException extends ApplicationRuntimeException 30 { 31 private transient IBinding _binding; 32 33 public BindingException(String message, IBinding binding) 34 { 35 this(message, binding, null); 36 } 37 38 public BindingException(String message, IBinding binding, Throwable rootCause) 39 { 40 this(message, null, null, binding, rootCause); 41 } 42 43 44 public BindingException( 45 String message, 46 Object component, 47 Location location, 48 IBinding binding, 49 Throwable rootCause) 50 { 51 super( 52 message, 53 component, 54 HiveMind.findLocation(new Object [] { location, binding, component }), 55 rootCause); 56 57 _binding = binding; 58 } 59 60 public IBinding getBinding() 61 { 62 return _binding; 63 } 64 } | Popular Tags |