View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
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.apache.commons.scxml2.model;
18  
19  /**
20   * Exception that is thrown when the SCXML model supplied to the
21   * executor has a fatal flaw that prevents the executor from
22   * further interpreting the the model.
23   *
24   */
25  public class ModelException extends Exception {
26  
27      /**
28       * Serial version UID.
29       */
30      private static final long serialVersionUID = 1L;
31  
32      /**
33       * @see java.lang.Exception#Exception()
34       */
35      public ModelException() {
36          super();
37      }
38  
39      /**
40       * @see java.lang.Exception#Exception(java.lang.String)
41       * @param message the detail message
42       */
43      public ModelException(final String message) {
44          super(message);
45      }
46  
47      /**
48       * @see java.lang.Exception#Exception(java.lang.Throwable)
49       * @param cause the cause
50       */
51      public ModelException(final Throwable cause) {
52          super(cause);
53      }
54  
55      /**
56       * @see java.lang.Exception#Exception(String, java.lang.Throwable)
57       * @param message the detail message
58       * @param cause the cause
59       */
60      public ModelException(final String message, final Throwable cause) {
61          super(message, cause);
62      }
63  
64  }
65