01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.exception;
18:
19: import edu.iu.uis.eden.engine.RouteContext;
20:
21: /**
22: * Thrown from the engine when a problem is encountered. Wraps a {@link RouteContext}
23: * which contains information about the state of the engine at the time the
24: * problem was encountered.
25: *
26: * @author rkirkend
27: */
28: public class RouteManagerException extends WorkflowRuntimeException {
29:
30: private static final long serialVersionUID = -7957245610622538745L;
31:
32: private RouteContext routeContext;
33:
34: public RouteManagerException(String message) {
35: super (message);
36: }
37:
38: public RouteManagerException(String message,
39: RouteContext routeContext) {
40: super (message);
41: this .routeContext = routeContext;
42: }
43:
44: public RouteManagerException(String message, Throwable throwable) {
45: super (message, throwable);
46: }
47:
48: public RouteManagerException(String message, Throwable throwable,
49: RouteContext routeContext) {
50: super (message, throwable);
51: this .routeContext = routeContext;
52: }
53:
54: public RouteManagerException(Throwable throwable,
55: RouteContext routeContext) {
56: super (throwable);
57: this .routeContext = routeContext;
58: }
59:
60: public RouteContext getRouteContext() {
61: return routeContext;
62: }
63:
64: public void setRouteContext(RouteContext routeContext) {
65: this.routeContext = routeContext;
66: }
67:
68: }
|