1 15 package org.apache.tapestry.parse; 16 17 import org.apache.hivemind.Locatable; 18 import org.apache.hivemind.Location; 19 20 26 27 public class TemplateParseException extends Exception implements Locatable 28 { 29 private Location _location; 30 private Throwable _rootCause; 31 32 public TemplateParseException(String message) 33 { 34 this(message, null, null); 35 } 36 37 public TemplateParseException(String message, Location location) 38 { 39 this(message, location, null); 40 } 41 42 public TemplateParseException(String message, Location location, Throwable rootCause) 43 { 44 super(message); 45 46 _location = location; 47 48 _rootCause = rootCause; 49 50 } 51 52 public Location getLocation() 53 { 54 return _location; 55 } 56 57 public Throwable getRootCause() 58 { 59 return _rootCause; 60 } 61 62 } | Popular Tags |