001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.commons.scxml.model;
018
019 /**
020 * Exception that is thrown when the SCXML model supplied to the
021 * executor has a fatal flaw that prevents the executor from
022 * further interpreting the the model.
023 *
024 */
025 public class ModelException extends Exception {
026
027 /**
028 * Serial version UID.
029 */
030 private static final long serialVersionUID = 1L;
031
032 /**
033 * @see java.lang.Exception#Exception()
034 */
035 public ModelException() {
036 super();
037 }
038
039 /**
040 * @see java.lang.Exception#Exception(java.lang.String)
041 * @param message
042 */
043 public ModelException(final String message) {
044 super(message);
045 }
046
047 /**
048 * @see java.lang.Exception#Exception(java.lang.Throwable)
049 * @param cause
050 */
051 public ModelException(final Throwable cause) {
052 super(cause);
053 }
054
055 /**
056 * @see java.lang.Exception#Exception(String, java.lang.Throwable)
057 * @param message
058 * @param cause
059 */
060 public ModelException(final String message, final Throwable cause) {
061 super(message, cause);
062 }
063
064 }
065