dk.brics.xsugar
Class XSugarException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by dk.brics.xsugar.XSugarException
All Implemented Interfaces:
Serializable

public class XSugarException
extends RuntimeException

Exception caused by illegal XSugar stylesheet.

See Also:
Serialized Form

Constructor Summary
XSugarException(Exception cause)
          Constructs a chained XSugar exception.
XSugarException(String message)
          Constructs a new XSugar exception.
XSugarException(String message, Location loc)
          Constructs a new XSugar exception.
 
Method Summary
 Location getLocation()
          Returns the source location of this XSugar exception.
 
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

XSugarException

public XSugarException(Exception cause)
Constructs a chained XSugar exception.

Parameters:
cause - cause of the error

XSugarException

public XSugarException(String message)
Constructs a new XSugar exception.

Parameters:
message - error message

XSugarException

public XSugarException(String message,
                       Location loc)
Constructs a new XSugar exception.

Parameters:
message - error message
loc - location in source string
Method Detail

getLocation

public Location getLocation()
Returns the source location of this XSugar exception.

Returns:
source location, null if not available


Copyright © 2004-2007 Anders Møller & Claus Brabrand.