KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > webflow > engine > ActionExecutionException


1 /*
2  * Copyright 2002-2006 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.springframework.webflow.engine;
17
18 import org.springframework.webflow.core.collection.AttributeMap;
19 import org.springframework.webflow.execution.Action;
20 import org.springframework.webflow.execution.FlowExecutionException;
21
22 /**
23  * Thrown if an unhandled exception occurs when an action is executed. Typically
24  * wraps another exception noting the root cause failure. The root cause may be
25  * checked or unchecked.
26  *
27  * @see org.springframework.webflow.execution.Action
28  * @see org.springframework.webflow.engine.ActionState
29  *
30  * @author Keith Donald
31  * @author Erwin Vervaet
32  */

33 public class ActionExecutionException extends FlowExecutionException {
34
35     /**
36      * Create a new action execution exception.
37      * @param flowId the current flow
38      * @param stateId the current state (may be null)
39      * @param action the action that generated an unrecoverable exception
40      * @param executionAttributes action execution properties that may have contributed to this failure
41      * @param cause the underlying cause
42      */

43     public ActionExecutionException(String JavaDoc flowId, String JavaDoc stateId, Action action,
44             AttributeMap executionAttributes, Throwable JavaDoc cause) {
45         super(flowId, stateId, "Exception thrown executing " + action + " in state '" + stateId + "' of flow '"
46                 + flowId + "' -- action execution attributes were '" + executionAttributes + "'", cause);
47     }
48
49     /**
50      * Create a new action execution exception.
51      * @param flowId the current flow
52      * @param stateId the current state (may be null)
53      * @param action the action that generated an unrecoverable exception
54      * @param executionAttributes action execution properties that may have contributed to this failure
55      * @param message a descriptive message
56      * @param cause the underlying cause
57      */

58     public ActionExecutionException(String JavaDoc flowId, String JavaDoc stateId, Action action,
59             AttributeMap executionAttributes, String JavaDoc message, Throwable JavaDoc cause) {
60         super(flowId, stateId, message, cause);
61     }
62
63 }
Popular Tags