com.deltaxml.odf
Class StylesheetLoadException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.deltaxml.odf.OdfException
              extended by com.deltaxml.odf.StylesheetLoadException
All Implemented Interfaces:
Serializable

public class StylesheetLoadException
extends OdfException

Indicates that there was a problem loading a required stylesheet.

This could be caused if the stylesheet could not be found, or if Saxon could not be located on the classpath. If the stylesheet could not be found, check which ClassLoader you are using as this can affect the way that system resources are located.

See Also:
Serialized Form

Constructor Summary
StylesheetLoadException(String stylesheetPath)
          Constructs a new StylesheetLoadException with a default message.
StylesheetLoadException(String message, String stylesheetPath)
          Constructs a new StylesheetLoadException with a configurable message
StylesheetLoadException(String message, String stylesheetPath, Throwable cause)
          Constructs a new StylesheetLoadException with a configurable message and an underlying cause
StylesheetLoadException(String stylesheetPath, Throwable cause)
          Constructs a new StylesheetLoadException with a default message and an underlying cause
 
Method Summary
 String getStylesheetPath()
          Reports the expected location of the stylesheet
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StylesheetLoadException

public StylesheetLoadException(String stylesheetPath)
Constructs a new StylesheetLoadException with a default message.

Parameters:
stylesheetPath - the expected location of the stylesheet

StylesheetLoadException

public StylesheetLoadException(String message,
                               String stylesheetPath)
Constructs a new StylesheetLoadException with a configurable message

Parameters:
message - the exeption message
stylesheetPath - the expected location of the stylesheet

StylesheetLoadException

public StylesheetLoadException(String message,
                               String stylesheetPath,
                               Throwable cause)
Constructs a new StylesheetLoadException with a configurable message and an underlying cause

Parameters:
message - the exception message
stylesheetPath - the expected location of the stylesheet
cause - the underlying cause of the exception

StylesheetLoadException

public StylesheetLoadException(String stylesheetPath,
                               Throwable cause)
Constructs a new StylesheetLoadException with a default message and an underlying cause

Parameters:
stylesheetPath - the expected location of the stylesheet
cause - the underlying cause of the exception
Method Detail

getStylesheetPath

public String getStylesheetPath()
Reports the expected location of the stylesheet

Returns:
a String representation of the stylesheet path


© 2001-2009 DeltaXML Ltd. All Rights Reserved.