View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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.kuali.rice.kew.exception;
17  
18  import org.kuali.rice.kew.api.WorkflowRuntimeException;
19  import org.kuali.rice.kew.engine.RouteContext;
20  
21  
22  /**
23   * Thrown from the engine when a problem is encountered.  Wraps a {@link RouteContext}
24   * which contains information about the state of the engine at the time the
25   * problem was encountered.
26   *
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  public class RouteManagerException extends WorkflowRuntimeException {
30  
31      private static final long serialVersionUID = -7957245610622538745L;
32  
33      private RouteContext routeContext;
34      
35      public RouteManagerException(String message) {
36          super(message);
37      }
38      
39      public RouteManagerException(String message, 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, RouteContext routeContext) {
49          super(message, throwable);
50          this.routeContext = routeContext;
51      }
52      
53      public RouteManagerException(Throwable throwable, RouteContext routeContext) {
54          super(throwable);
55          this.routeContext = routeContext;
56      }
57          
58      public RouteContext getRouteContext() {
59          return routeContext;
60      }
61  
62      public void setRouteContext(RouteContext routeContext) {
63          this.routeContext = routeContext;
64      }
65      
66  }