com.lotus.xsl.server
Class ApplyXSLException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.lotus.xsl.server.ApplyXSLException

public class ApplyXSLException
extends java.lang.Exception

Wrapper for exceptions occurring during apply XSL processing. Allows for exceptions to be returned with an associated HTTP Status Code.

See Also:
Serialized Form

Constructor Summary
ApplyXSLException()
          Constructor for exception with no additional detail.
ApplyXSLException(java.lang.Exception e)
          Constructor for exception.
ApplyXSLException(java.lang.Exception e, int hsc)
          Constructor for passed exception with HTTP status code.
ApplyXSLException(int hsc)
          Constructor for exception with HTTP status code.
ApplyXSLException(java.lang.String s)
          Constructor for exception with message.
ApplyXSLException(java.lang.String s, java.lang.Exception e)
          Constructor for passed exception with message.
ApplyXSLException(java.lang.String s, java.lang.Exception e, int hsc)
          Constructor for passed exception with HTTP status code and message.
ApplyXSLException(java.lang.String s, int hsc)
          Constructor for exception with message and HTTP status code.
 
Method Summary
 void appendMessage(java.lang.String s)
          Appends string to exception message
 java.lang.Exception getException()
          Returns the wrapped exception.
 java.lang.String getMessage()
          Returns exception message
 int getStatusCode()
          Returns the HTTP status code associated with the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplyXSLException

public ApplyXSLException()
Constructor for exception with no additional detail.

ApplyXSLException

public ApplyXSLException(java.lang.String s)
Constructor for exception with message.
Parameters:
s - Exception message

ApplyXSLException

public ApplyXSLException(int hsc)
Constructor for exception with HTTP status code.
Parameters:
hsc - Valid status code from javax.servlet.http.HttpServletResponse

ApplyXSLException

public ApplyXSLException(java.lang.String s,
                         int hsc)
Constructor for exception with message and HTTP status code.
Parameters:
s - Exception message
hsc - Valid status code from javax.servlet.http.HttpServletResponse

ApplyXSLException

public ApplyXSLException(java.lang.Exception e)
Constructor for exception.
Parameters:
e - Exception to be wrapped.

ApplyXSLException

public ApplyXSLException(java.lang.String s,
                         java.lang.Exception e)
Constructor for passed exception with message.
Parameters:
s - Exception message
e - Exception to be wrapped.

ApplyXSLException

public ApplyXSLException(java.lang.Exception e,
                         int hsc)
Constructor for passed exception with HTTP status code.
Parameters:
e - Exception to be wrapped.
hsc - Valid status code from javax.servlet.http.HttpServletResponse

ApplyXSLException

public ApplyXSLException(java.lang.String s,
                         java.lang.Exception e,
                         int hsc)
Constructor for passed exception with HTTP status code and message.
Parameters:
s - Exception message
e - Exception to be wrapped.
hsc - Valid status code from javax.servlet.http.HttpServletResponse
Method Detail

getMessage

public java.lang.String getMessage()
Returns exception message
Returns:
exception message
Overrides:
getMessage in class java.lang.Throwable

appendMessage

public void appendMessage(java.lang.String s)
Appends string to exception message
Parameters:
s - String to be added to message

getException

public java.lang.Exception getException()
Returns the wrapped exception.
Returns:
Wrapped exception

getStatusCode

public int getStatusCode()
Returns the HTTP status code associated with the exception.
Returns:
Valid status code from javax.servlet.http.HttpServletResponse