com.sapportals.portal.appintegrator.template_processor
Class TemplateParserException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.sapportals.portal.prt.runtime.PortalRuntimeException
                          |
                          +--com.sapportals.portal.appintegrator.template_processor.TemplateParserException
All Implemented Interfaces:
java.io.Serializable

public class TemplateParserException
extends com.sapportals.portal.prt.runtime.PortalRuntimeException

Exception fired on Template parsing errors Copyright (c) SAP Portals Europe GmbH 2001

Version:
$Revision: #1 $
See Also:
Serialized Form

Constructor Summary
TemplateParserException(java.lang.String template, java.lang.String errmsg, int pos)
          Constructs a new TemplateParserException
TemplateParserException(java.lang.String template, java.lang.String tagExpr, java.lang.String invalidCtx, boolean isTerminal)
          Constructs a new TemplateParserException because of an unknown context/terminal
TemplateParserException(java.lang.String template, java.lang.String errTk, java.lang.String msg, int pos)
          Constructs a new TemplateParserException because of a terminal syntax error
TemplateParserException(java.lang.String msg, java.lang.Throwable cause)
          Constructs a new TemplateParserException with
 
Methods inherited from class com.sapportals.portal.prt.runtime.PortalRuntimeException
getCause, getException, printStackTrace, printStackTrace, printStackTrace, setCause, setException, toHTML, toText
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateParserException

public TemplateParserException(java.lang.String template,
                               java.lang.String errmsg,
                               int pos)
Constructs a new TemplateParserException
Parameters:
template - the parsed template
errmsg - what went wrong
pos - position in the template where the error occured

TemplateParserException

public TemplateParserException(java.lang.String template,
                               java.lang.String tagExpr,
                               java.lang.String invalidCtx,
                               boolean isTerminal)
Constructs a new TemplateParserException because of an unknown context/terminal
Parameters:
template - the to be processed template
tagExpr - the current tag expression where the error occured
invalidCtx - the contex/terminal that could not be retrieved
isTerminal - true <=> invalidCtx is a terminal property

TemplateParserException

public TemplateParserException(java.lang.String template,
                               java.lang.String errTk,
                               java.lang.String msg,
                               int pos)
Constructs a new TemplateParserException because of a terminal syntax error
Parameters:
template - the to be processed template
errTk - the token that could not be consumed
msg - the reason why the token could not be consumed
pos - the zero based position in the template where the error occured

TemplateParserException

public TemplateParserException(java.lang.String msg,
                               java.lang.Throwable cause)
Constructs a new TemplateParserException with
Parameters:
cause - an exception that was caught (e.g. IOException).
msg - what went wrong