com.ibm.xsp.exception
Class EvaluationExceptionEx

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.faces.FacesException
                  extended by javax.faces.el.EvaluationException
                      extended by com.ibm.xsp.exception.EvaluationExceptionEx
All Implemented Interfaces:
IExceptionEx, XSPExceptionInfo, java.io.Serializable

public class EvaluationExceptionEx
extends javax.faces.el.EvaluationException
implements XSPExceptionInfo, IExceptionEx

Exception that keeps track of the source component/property. Used to display a better error message to the user. Not intended to be instantiated

See Also:
Serialized Form

Constructor Summary
EvaluationExceptionEx(java.lang.String message, javax.faces.el.MethodBinding binding)
          Construct a new exception with the specified detail message and no root cause.
EvaluationExceptionEx(java.lang.String message, java.lang.Object[] params, java.lang.Throwable cause, javax.faces.el.MethodBinding binding)
          Construct a new exception with the specified detail message and root cause.
EvaluationExceptionEx(java.lang.String message, java.lang.Object[] params, java.lang.Throwable cause, javax.faces.el.ValueBinding binding)
          Construct a new exception with the specified detail message and root cause.
EvaluationExceptionEx(java.lang.String message, java.lang.Throwable cause, javax.faces.el.MethodBinding binding)
          Construct a new exception with the specified detail message and root cause.
EvaluationExceptionEx(java.lang.String message, java.lang.Throwable cause, javax.faces.el.ValueBinding binding)
          Construct a new exception with the specified detail message and root cause.
EvaluationExceptionEx(java.lang.String message, javax.faces.el.ValueBinding binding)
          Construct a new exception with the specified detail message and no root cause.
EvaluationExceptionEx(java.lang.Throwable cause, javax.faces.el.MethodBinding binding)
          Construct a new exception with the specified root cause.
EvaluationExceptionEx(java.lang.Throwable cause, javax.faces.el.ValueBinding binding)
          Construct a new exception with the specified root cause.
 
Method Summary
 java.lang.String getErrorComponentId()
          Get the component ID that generated the error.
 java.lang.String getErrorPropertyId()
          Get the component property that generated the error.
 java.lang.String getErrorText()
          Get the expression text that generated the error.
 void printExtraInformation(java.io.PrintWriter err)
          Print extra exception information for log files.
 
Methods inherited from class javax.faces.FacesException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

EvaluationExceptionEx

public EvaluationExceptionEx(java.lang.Throwable cause,
                             javax.faces.el.ValueBinding binding)
Construct a new exception with the specified root cause.

Parameters:
cause - of exception
value - binding that exception was thrown in

EvaluationExceptionEx

public EvaluationExceptionEx(java.lang.Throwable cause,
                             javax.faces.el.MethodBinding binding)
Construct a new exception with the specified root cause.

Parameters:
cause - of exception
method - binding that exception was thrown in

EvaluationExceptionEx

public EvaluationExceptionEx(java.lang.String message,
                             javax.faces.el.ValueBinding binding)
Construct a new exception with the specified detail message and no root cause.

Parameters:
error - message
value - binding that exception was thrown in

EvaluationExceptionEx

public EvaluationExceptionEx(java.lang.String message,
                             javax.faces.el.MethodBinding binding)
Construct a new exception with the specified detail message and no root cause.

Parameters:
error - message
method - binding that exception was thrown in

EvaluationExceptionEx

public EvaluationExceptionEx(java.lang.String message,
                             java.lang.Throwable cause,
                             javax.faces.el.ValueBinding binding)
Construct a new exception with the specified detail message and root cause.

Parameters:
error - message
cause - of exception
value - binding that exception was thrown in

EvaluationExceptionEx

public EvaluationExceptionEx(java.lang.String message,
                             java.lang.Throwable cause,
                             javax.faces.el.MethodBinding binding)
Construct a new exception with the specified detail message and root cause.

Parameters:
error - message
cause - of exception
method - binding that exception was thrown in

EvaluationExceptionEx

public EvaluationExceptionEx(java.lang.String message,
                             java.lang.Object[] params,
                             java.lang.Throwable cause,
                             javax.faces.el.ValueBinding binding)
Construct a new exception with the specified detail message and root cause.

Parameters:
error - message
error - message params
cause - of exception
value - binding that exception was thrown in

EvaluationExceptionEx

public EvaluationExceptionEx(java.lang.String message,
                             java.lang.Object[] params,
                             java.lang.Throwable cause,
                             javax.faces.el.MethodBinding binding)
Construct a new exception with the specified detail message and root cause.

Parameters:
error - message
error - message params
cause - of exception
method - binding that exception was thrown in
Method Detail

getErrorText

public java.lang.String getErrorText()
Description copied from interface: XSPExceptionInfo
Get the expression text that generated the error.

Specified by:
getErrorText in interface XSPExceptionInfo
Returns:
Returns the source text of the error

getErrorComponentId

public java.lang.String getErrorComponentId()
Description copied from interface: XSPExceptionInfo
Get the component ID that generated the error.

Specified by:
getErrorComponentId in interface XSPExceptionInfo
Returns:
Returns the id of component that is throwing the error

getErrorPropertyId

public java.lang.String getErrorPropertyId()
Description copied from interface: XSPExceptionInfo
Get the component property that generated the error.

Specified by:
getErrorPropertyId in interface XSPExceptionInfo
Returns:
Returns the component property Id that is throwing the error

printExtraInformation

public void printExtraInformation(java.io.PrintWriter err)
Print extra exception information for log files.

Specified by:
printExtraInformation in interface IExceptionEx
Parameters:
err -