001    package railo.transformer.bytecode;
002    
003    import railo.commons.lang.ClassException;
004    import railo.runtime.exp.TemplateException;
005    
006    public final class BytecodeException extends TemplateException {
007    
008            private int line;
009    
010            public BytecodeException(String message, int line) {
011                    super(message);
012                    this.line=line;
013            }
014    
015            public BytecodeException(ClassException cause, int line) {
016                    this(cause.getMessage(),line);
017                    initCause(cause);
018            }
019    
020            /**
021             * @return the line
022             */
023            public int getLineAsInt() {
024                    return line;
025            }
026    
027            public int getColumnAsInt() {
028                    return 0;
029            }
030    
031    }