Revision 20098 trunk/libraries/libFMap/src/com/iver/cit/gvsig/exceptions/visitors/VisitorException.java

View differences:

VisitorException.java
46 46
import org.gvsig.exceptions.BaseException;
47 47

  
48 48
/**
49
 * Excepci?n lanzada por los Visitors.
49
 * <p>The information of a layer or group of layers is accessed using the *strategy* and *visitor* software patterns. If
50
 *  any problem is produced accessing that information in that way, a <code>VisitException</code> will be produced.</p>
50 51
 *
51 52
 * @author Vicente Caballero Navarro
52 53
 */
53 54
public class VisitorException extends BaseException {
54 55
	private String layer = null;
55

  
56
	/**
57
 	 * <p>Constructs an visitor exception with the specified cause, and the layer where this exception was produced.</p>
58
 	 * 
59
 	 * @param layer the layer affected
60
	 * @param exception an exception with the cause
61
	 */
56 62
	public VisitorException(String layer,Throwable exception) {
57 63
		this.layer = layer;
58 64
		init();
59 65
		initCause(exception);
60 66
	}
61 67

  
68
	/**
69
	 * <p>Prepares the messages to display.</p>
70
	 */
62 71
	private void init() {
63 72
		messageKey = "error_visitor";
64 73
		formatString = "Can?t visit the layer: %(layer) ";
65 74
	}
66 75

  
76
	/*
77
	 * (non-Javadoc)
78
	 * @see org.gvsig.exceptions.BaseException#values()
79
	 */
67 80
	protected Map values() {
68 81
		Hashtable params = new Hashtable();
69 82
		params.put("layer",layer);

Also available in: Unified diff