org.peaseplate.internal
Class AbstractLocatedTemplateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.peaseplate.TemplateException
              extended by org.peaseplate.internal.AbstractLocatedTemplateException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TemplateParserException, TemplateRuntimeException, TemplateScannerException

public abstract class AbstractLocatedTemplateException
extends TemplateException

The abstract implementation of a template exception that is linked to some tempalte source.

Author:
Manfred HANTSCHEL
See Also:
Serialized Form

Constructor Summary
AbstractLocatedTemplateException(TemplateLocator locator, int line, int column, java.lang.String message)
          Creates the exception using the specified locator, line and column number and the message.
AbstractLocatedTemplateException(TemplateLocator locator, int line, int column, java.lang.String message, java.lang.Throwable cause)
          Creates the exception using the specified locator, line and column number and the message.
 
Method Summary
 int getColumn()
          Returns the column of the template where the exception occurred
 int getLine()
          Returns the line of the template where the exception occurred
 TemplateLocator getLocator()
          Returns the locator of the template where the exception occurred
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractLocatedTemplateException

public AbstractLocatedTemplateException(TemplateLocator locator,
                                        int line,
                                        int column,
                                        java.lang.String message)
Creates the exception using the specified locator, line and column number and the message.

Parameters:
locator - the locator
line - the line
column - the column
message - the message

AbstractLocatedTemplateException

public AbstractLocatedTemplateException(TemplateLocator locator,
                                        int line,
                                        int column,
                                        java.lang.String message,
                                        java.lang.Throwable cause)
Creates the exception using the specified locator, line and column number and the message. Additionally it gets the cause for the exception.

Parameters:
locator - the locator
line - the line
column - the column
message - the message
cause - the cause
Method Detail

getLocator

public TemplateLocator getLocator()
Returns the locator of the template where the exception occurred

Returns:
the locator

getLine

public int getLine()
Returns the line of the template where the exception occurred

Returns:
the line

getColumn

public int getColumn()
Returns the column of the template where the exception occurred

Returns:
the column


Copyright © 2008. All Rights Reserved.