anyframe.web.struts.util
Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.struts.util.ModuleException
anyframe.web.struts.util.AuthenticationException
- All Implemented Interfaces:
- java.io.Serializable
public class AuthenticationException
- extends org.apache.struts.util.ModuleException
The class expanding the org.apache.struts.util.ModuleException.
Handles the Exception with respect to authentication.
We can define the exception separately in the struts-config.xml
when the exception for authentication occurs.
An example defining the AuthenticationException in struts-config.xml
<exception
path="/sample/common/error.jsp"
key="error.common.msg.authentication"
type="anyframe.web.struts.common.util.AuthenticationException"
handler="com.sds.emp.common.EmpExceptionHandler" />
Brings as the Exception message by finding in the message resources
the value appropriate to the key when the authentication fails by
configuring like above.
- Author:
- Byunghun Woo
- See Also:
- Serialized Form
| Fields inherited from class org.apache.struts.util.ModuleException |
message, property |
|
Constructor Summary |
AuthenticationException()
The case for creating the instance without the key value for Exception Message
The message's key is error.common.msg.authentication. |
AuthenticationException(java.lang.String key)
Sets as the exception message the value appropriate to the message key value. |
AuthenticationException(java.lang.String key,
java.lang.String urlname)
Sets as the exception message the value appropriate to the message key and urlname. |
| Methods inherited from class org.apache.struts.util.ModuleException |
getActionMessage, getProperty, setProperty |
| 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 |
AuthenticationException
public AuthenticationException()
- The case for creating the instance without the key value for Exception Message
The message's key is
error.common.msg.authentication.
AuthenticationException
public AuthenticationException(java.lang.String key)
- Sets as the exception message the value appropriate to the message key value.
- Parameters:
key - The message key registered in message resources
AuthenticationException
public AuthenticationException(java.lang.String key,
java.lang.String urlname)
- Sets as the exception message the value appropriate to the message key and urlname.
- Parameters:
key - The message key registered in message resourcesurlname - requested url
Copyright © 2008-2009 Samsung SDS. All Rights Reserved.