org.jplate.foundation.parser
Class JPlateParsingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jplate.JPlateException
              extended by org.jplate.foundation.parser.JPlateParsingException
All Implemented Interfaces:
java.io.Serializable

public class JPlateParsingException
extends JPlateException

Thrown when there are problems parsing.

Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/parser/JPlateParsingException.java $
    

See Also:
Serialized Form

Field Summary
private  SourceIfc _source
          The source from which parsing is being performed.
 
Constructor Summary
JPlateParsingException()
          Default constructor.
JPlateParsingException(SourceIfc source)
          This constructor sets the source where parsing failed.
JPlateParsingException(java.lang.String msg)
          This constructor sets the message.
JPlateParsingException(java.lang.String msg, SourceIfc source)
          This constructor sets the message.
JPlateParsingException(java.lang.String msg, java.lang.Throwable rootCause)
          This constructor sets the message and root cause.
JPlateParsingException(java.lang.String msg, java.lang.Throwable rootCause, SourceIfc source)
          This constructor sets the message and root cause.
JPlateParsingException(java.lang.Throwable rootCause)
          This constructor sets the root cause and the node that caused self to be raised.
JPlateParsingException(java.lang.Throwable rootCause, SourceIfc source)
          This constructor sets the root cause and the node that caused self to be raised.
 
Method Summary
 SourceIfc getSource()
          Return the source from whence parsing was performed and failed.
 
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
 

Field Detail

_source

private final SourceIfc _source
The source from which parsing is being performed.

Constructor Detail

JPlateParsingException

public JPlateParsingException()
Default constructor.


JPlateParsingException

public JPlateParsingException(SourceIfc source)
This constructor sets the source where parsing failed.

Parameters:
source - ~he source from whence parsing is being performed.

JPlateParsingException

public JPlateParsingException(java.lang.String msg)
This constructor sets the message.

Parameters:
msg - A message about why self was raised.

JPlateParsingException

public JPlateParsingException(java.lang.String msg,
                              SourceIfc source)
This constructor sets the message.

Parameters:
msg - A message about why self was raised.
source - The source from whence parsing is being performed.

JPlateParsingException

public JPlateParsingException(java.lang.Throwable rootCause)
This constructor sets the root cause and the node that caused self to be raised.

Parameters:
rootCause - The exception that caused self to be raised.

JPlateParsingException

public JPlateParsingException(java.lang.Throwable rootCause,
                              SourceIfc source)
This constructor sets the root cause and the node that caused self to be raised.

Parameters:
rootCause - The exception that caused self to be raised.
source - The source from whence parsing is being performed.

JPlateParsingException

public JPlateParsingException(java.lang.String msg,
                              java.lang.Throwable rootCause)
This constructor sets the message and root cause.

Parameters:
msg - A message about why self was raised.
rootCause - The exception that caused self to be raised.

JPlateParsingException

public JPlateParsingException(java.lang.String msg,
                              java.lang.Throwable rootCause,
                              SourceIfc source)
This constructor sets the message and root cause.

Parameters:
msg - A message about why self was raised.
rootCause - The exception that caused self to be raised.
source - The source from whence parsing is being performed.
Method Detail

getSource

public SourceIfc getSource()
Return the source from whence parsing was performed and failed.

Returns:
The source from whence parsnig was performed and failed, or null if not set upon construction.