webwork/src/test/webwork/test/actions CheckedExceptionAction.java,NONE,1.1 ErrorAction.java,NONE,1.1 RuntimeExceptionAction.java,NONE,1.1
[email protected] Fri, 31 Oct 2003 23:17:03 -0800
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/test/webwork/test/actions
In directory sc8-pr-cvs1:/tmp/cvs-serv25627/test/webwork/test/actions
Added Files:
CheckedExceptionAction.java ErrorAction.java
RuntimeExceptionAction.java
Log Message:
Moved test classes to test tree
--- NEW FILE: CheckedExceptionAction.java ---
package webwork.test.actions;
import webwork.action.Action;
import java.io.IOException;
/**
* CheckedExceptionAction
* @author Jason Carreira
* Created Jul 22, 2003 1:36:14 PM
*/
public class CheckedExceptionAction implements Action {
/**
* This method is where the logic of the action is executed.
* Parameters are passed by calling set-methods, or by implementing
* the ParameterAware interface.
*
* @return a string representing the logical result of the execution.
* See constants in this interface for a list of standard result values.
* @exception Exception thrown if a system level exception occurs.
* Application level exceptions should be handled by returning
* an error value, such as Action.ERROR.
*/
public String execute()
throws Exception {
throw new IOException("webwork.test.CheckedExceptionAction");
}
}
--- NEW FILE: ErrorAction.java ---
package webwork.test.actions;
import webwork.action.Action;
/**
* ErrorAction
* @author Jason Carreira
* Created Jul 22, 2003 12:36:38 PM
*/
public class ErrorAction implements Action {
/**
* This method is where the logic of the action is executed.
* Parameters are passed by calling set-methods, or by implementing
* the ParameterAware interface.
*
* @return a string representing the logical result of the execution.
* See constants in this interface for a list of standard result values.
* @exception Exception thrown if a system level exception occurs.
* Application level exceptions should be handled by returning
* an error value, such as Action.ERROR.
*/
public String execute()
throws Exception {
throw new Error("webwork.test.ErrorAction");
}
}
--- NEW FILE: RuntimeExceptionAction.java ---
package webwork.test.actions;
import webwork.action.Action;
/**
* RuntimeExceptionAction
* @author Jason Carreira
* Created Jul 22, 2003 11:49:19 AM
*/
public class RuntimeExceptionAction implements Action {
/**
* This method is where the logic of the action is executed.
* Parameters are passed by calling set-methods, or by implementing
* the ParameterAware interface.
*
* @return a string representing the logical result of the execution.
* See constants in this interface for a list of standard result values.
* @exception Exception thrown if a system level exception occurs.
* Application level exceptions should be handled by returning
* an error value, such as Action.ERROR.
*/
public String execute()
throws Exception {
throw new RuntimeException("webwork.test.RuntimeExceptionAction");
}
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/