View Javadoc

1   /*
2    * Copyright 2005-2008 The Kuali Foundation
3    * 
4    * 
5    * Licensed under the Educational Community License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    * http://www.opensource.org/licenses/ecl2.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 org.kuali.rice.kew.exception;
18  
19  import org.kuali.rice.kew.engine.RouteContext;
20  import org.kuali.rice.kew.exception.WorkflowRuntimeException;
21  
22  
23  /**
24   * Thrown from the engine when a problem is encountered.  Wraps a {@link RouteContext}
25   * which contains information about the state of the engine at the time the
26   * problem was encountered.
27   *
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   */
30  public class RouteManagerException extends WorkflowRuntimeException {
31  
32      private static final long serialVersionUID = -7957245610622538745L;
33  
34      private RouteContext routeContext;
35      
36      public RouteManagerException(String message) {
37          super(message);
38      }
39      
40      public RouteManagerException(String message, RouteContext routeContext) {
41          super(message);
42          this.routeContext = routeContext;
43      }
44      
45      public RouteManagerException(String message, Throwable throwable) {
46          super(message, throwable);
47      }
48      
49      public RouteManagerException(String message, Throwable throwable, RouteContext routeContext) {
50          super(message, throwable);
51          this.routeContext = routeContext;
52      }
53      
54      public RouteManagerException(Throwable throwable, RouteContext routeContext) {
55          super(throwable);
56          this.routeContext = routeContext;
57      }
58          
59      public RouteContext getRouteContext() {
60          return routeContext;
61      }
62  
63      public void setRouteContext(RouteContext routeContext) {
64          this.routeContext = routeContext;
65      }
66      
67  }