org.displaytag.exception
Class MissingAttributeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.jsp.JspException
javax.servlet.jsp.JspTagException
org.displaytag.exception.BaseNestableJspTagException
org.displaytag.exception.MissingAttributeException
- All Implemented Interfaces:
- java.io.Serializable
public class MissingAttributeException
- extends BaseNestableJspTagException
Exception thrown when a required attribute is not set. This is thrown when the user is required to set at least one
of multiple attributes and the check can't be enforced by the tld.
- Version:
- $Revision: 1081 $ ($Author: fgiust $)
- Author:
- Fabrizio Giustina
- See Also:
- Serialized Form
|
Constructor Summary |
MissingAttributeException(java.lang.Class source,
java.lang.String[] attributeNames)
Constructor for MissingAttributeException. |
|
Method Summary |
java.lang.String[] |
getAttributeNames()
returns an array containing the names of missing attributes. |
SeverityEnum |
getSeverity()
subclasses need to define the getSeverity method to provide correct severity for logging. |
| Methods inherited from class javax.servlet.jsp.JspException |
getRootCause |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MissingAttributeException
public MissingAttributeException(java.lang.Class source,
java.lang.String[] attributeNames)
- Constructor for MissingAttributeException.
- Parameters:
source - Class where the exception is generatedattributeNames - String attribute name
getSeverity
public SeverityEnum getSeverity()
- Description copied from class:
BaseNestableJspTagException
- subclasses need to define the getSeverity method to provide correct severity for logging.
- Specified by:
getSeverity in class BaseNestableJspTagException
- Returns:
- SeverityEnum.ERROR
- See Also:
BaseNestableJspTagException.getSeverity(),
SeverityEnum
getAttributeNames
public java.lang.String[] getAttributeNames()
- returns an array containing the names of missing attributes.
- Returns:
- String[] array of missing attributes
Copyright © 2002-2010 the Displaytag team. All Rights Reserved.