GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / src / web / org / codehaus / groovy / grails / web / taglib / exceptions / GrailsTagException.java
blob53ad8daeab0e9552a6c5ade155da1ad828242ae1
1 /* Copyright 2004-2005 the original author or authors.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
15 package org.codehaus.groovy.grails.web.taglib.exceptions;
17 import org.codehaus.groovy.grails.exceptions.GrailsException;
18 import org.codehaus.groovy.grails.exceptions.SourceCodeAware;
20 /**
21 * @author Graeme Rocher
22 * @since 11-Jan-2006
24 public class GrailsTagException extends GrailsException implements SourceCodeAware {
25 private String fileName;
26 private int lineNumber;
28 public GrailsTagException(String s) {
29 super(s);
32 public GrailsTagException(String arg0, Throwable arg1) {
33 super(arg0, arg1);
36 public GrailsTagException(Throwable arg0) {
37 super(arg0);
40 public GrailsTagException(String message, String pageName, int lineNumber) {
41 super(message);
42 this.fileName = pageName;
43 this.lineNumber = lineNumber;
46 public String getFileName() {
47 return fileName;
50 public int getLineNumber() {
51 return lineNumber;