Docmosis API 4.5.0

com.docmosis.template
Class TemplateParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.docmosis.template.TemplateParseException
All Implemented Interfaces:
Serializable

public class TemplateParseException
extends Exception

This exception is used to identify a problem parsing a template.

See Also:
Serialized Form

Constructor Summary
TemplateParseException()
           
TemplateParseException(String message)
           
TemplateParseException(String message, long errorInsertionIndex)
           
TemplateParseException(String message, String[] suggestions)
           
TemplateParseException(String message, String[] suggestions, long errorInsertionIndex)
           
TemplateParseException(String message, String[] suggestions, long errorInsertionIndex, boolean outsideParagraph)
           
TemplateParseException(String message, Throwable cause)
           
TemplateParseException(String message, Throwable cause, String[] suggestions)
           
TemplateParseException(String message, Throwable cause, String[] suggestions, long errorInsertionIndex)
           
TemplateParseException(Throwable cause)
           
TemplateParseException(Throwable cause, String[] suggestions)
           
TemplateParseException(Throwable cause, String[] suggestions, long errorInsertionIndex)
           
 
Method Summary
 long getErrorInsertionIndex()
          If set, this indicates a good location in the template to insert an error message.
 String[] getSuggestions()
           
 boolean isOutsideParagraph()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateParseException

public TemplateParseException()

TemplateParseException

public TemplateParseException(String message,
                              Throwable cause)

TemplateParseException

public TemplateParseException(String message)

TemplateParseException

public TemplateParseException(String message,
                              long errorInsertionIndex)

TemplateParseException

public TemplateParseException(Throwable cause)

TemplateParseException

public TemplateParseException(String message,
                              Throwable cause,
                              String[] suggestions)

TemplateParseException

public TemplateParseException(String message,
                              Throwable cause,
                              String[] suggestions,
                              long errorInsertionIndex)

TemplateParseException

public TemplateParseException(String message,
                              String[] suggestions)

TemplateParseException

public TemplateParseException(String message,
                              String[] suggestions,
                              long errorInsertionIndex)

TemplateParseException

public TemplateParseException(String message,
                              String[] suggestions,
                              long errorInsertionIndex,
                              boolean outsideParagraph)

TemplateParseException

public TemplateParseException(Throwable cause,
                              String[] suggestions)

TemplateParseException

public TemplateParseException(Throwable cause,
                              String[] suggestions,
                              long errorInsertionIndex)
Method Detail

getSuggestions

public String[] getSuggestions()

getErrorInsertionIndex

public long getErrorInsertionIndex()
If set, this indicates a good location in the template to insert an error message.

Returns:
0 if not applicable

toString

public String toString()

isOutsideParagraph

public boolean isOutsideParagraph()

Docmosis API 4.5.0

Copyright © 2014 Docmosis Pty Ltd. All Rights Reserved.