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.semantics;
18
19 /**
20 * Errors reported by the default SCXMLSemantics implementation.
21 *
22 */
23 public class ErrorConstants {
24
25 /**
26 * Missing initial state for a composite state or for the scxml root.
27 *
28 * @see org.apache.commons.scxml2.model.SCXML#getInitialTransition()
29 * @see org.apache.commons.scxml2.model.State#getInitial()
30 */
31 public static final String NO_INITIAL = "NO_INITIAL";
32
33 /**
34 * An initial state for a composite state whose Transition does not.
35 * Map to a descendant of the composite state.
36 *
37 */
38 public static final String ILLEGAL_INITIAL = "ILLEGAL_INITIAL";
39
40 /**
41 * Unknown action - unsupported executable content. List of supported.
42 * actions: assign, cancel, elseif, else, if, log, send, var
43 */
44 public static final String UNKNOWN_ACTION = "UNKNOWN_ACTION";
45
46 /**
47 * Illegal state machine configuration.
48 * Either a parallel exists which does not have all its AND sub-states
49 * active or there are multiple enabled OR states on the same level.
50 */
51 public static final String ILLEGAL_CONFIG = "ILLEGAL_CONFIG";
52
53 /**
54 * A variable referred to by assign name attribute is undefined.
55 */
56 public static final String UNDEFINED_VARIABLE = "UNDEFINED_VARIABLE";
57
58 /**
59 * An expression language error.
60 */
61 public static final String EXPRESSION_ERROR = "EXPRESSION_ERROR";
62
63 /**
64 * An execution error.
65 */
66 public static final String EXECUTION_ERROR = "EXECUTION_ERROR";
67
68 //---------------------------------------------- STATIC CONSTANTS ONLY
69
70 /**
71 * Discourage instantiation.
72 */
73 private ErrorConstants() {
74 super(); // humor checkstyle
75 }
76
77 }