1 12 package org.w3c.css.sac; 13 14 30 public class CSSParseException extends CSSException { 31 32 private String uri; 33 private int lineNumber; 34 private int columnNumber; 35 36 48 public CSSParseException(String message, Locator locator) { 49 super(message); 50 this.code = SAC_SYNTAX_ERR; 51 this.uri = locator.getURI(); 52 this.lineNumber = locator.getLineNumber(); 53 this.columnNumber = locator.getColumnNumber(); 54 } 55 56 57 73 public CSSParseException(String message, Locator locator, 74 Exception e) { 75 super(SAC_SYNTAX_ERR, message, e); 76 this.uri = locator.getURI(); 77 this.lineNumber = locator.getLineNumber(); 78 this.columnNumber = locator.getColumnNumber(); 79 } 80 81 82 97 public CSSParseException(String message, String uri, 98 int lineNumber, int columnNumber) { 99 super(message); 100 this.code = SAC_SYNTAX_ERR; 101 this.uri = uri; 102 this.lineNumber = lineNumber; 103 this.columnNumber = columnNumber; 104 } 105 106 127 public CSSParseException(String message, String uri, 128 int lineNumber, int columnNumber, Exception e) { 129 super(SAC_SYNTAX_ERR, message, e); 130 this.uri = uri; 131 this.lineNumber = lineNumber; 132 this.columnNumber = columnNumber; 133 } 134 135 144 public String getURI() { 145 return this.uri; 146 } 147 148 149 156 public int getLineNumber() { 157 return this.lineNumber; 158 } 159 160 161 170 public int getColumnNumber() { 171 return this.columnNumber; 172 } 173 } 174 | Popular Tags |