1 /*
2 * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Sep 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xalan.internal.xsltc.compiler.util;
23
24 import com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet;
25 import com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode;
26 import java.text.MessageFormat;
27 import java.util.Locale;
28 import java.util.ResourceBundle;
29 import jdk.xml.internal.SecuritySupport;
30
31 /**
32 * @author Jacek Ambroziak
33 * @author Santiago Pericas-Geertsen
34 * @author G. Todd Miller
35 * @author Erwin Bolwidt <ejb@klomp.org>
36 * @author Morten Jorgensen
37 */
38 public final class ErrorMsg {
39
40 private String _code;
41 private int _line;
42 private String _message = null;
43 private String _url = null;
44 Object[] _params = null;
45 private boolean _isWarningError;
46
47 Throwable _cause;
48
49 // Compiler error messages
50 public static final String MULTIPLE_STYLESHEET_ERR = "MULTIPLE_STYLESHEET_ERR";
51 public static final String TEMPLATE_REDEF_ERR = "TEMPLATE_REDEF_ERR";
52 public static final String TEMPLATE_UNDEF_ERR = "TEMPLATE_UNDEF_ERR";
53 public static final String VARIABLE_REDEF_ERR = "VARIABLE_REDEF_ERR";
54 public static final String VARIABLE_UNDEF_ERR = "VARIABLE_UNDEF_ERR";
55 public static final String CLASS_NOT_FOUND_ERR = "CLASS_NOT_FOUND_ERR";
56 public static final String METHOD_NOT_FOUND_ERR = "METHOD_NOT_FOUND_ERR";
|
1 /*
2 * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xalan.internal.xsltc.compiler.util;
22
23 import com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet;
24 import com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode;
25 import java.text.MessageFormat;
26 import java.util.Locale;
27 import java.util.ResourceBundle;
28 import jdk.xml.internal.SecuritySupport;
29
30 /**
31 * @author Jacek Ambroziak
32 * @author Santiago Pericas-Geertsen
33 * @author G. Todd Miller
34 * @author Erwin Bolwidt <ejb@klomp.org>
35 * @author Morten Jorgensen
36 * @LastModified: Sep 2017
37 */
38 public final class ErrorMsg {
39
40 private String _code;
41 private int _line;
42 private String _message = null;
43 private String _url = null;
44 Object[] _params = null;
45 private boolean _isWarningError;
46
47 Throwable _cause;
48
49 // Compiler error messages
50 public static final String MULTIPLE_STYLESHEET_ERR = "MULTIPLE_STYLESHEET_ERR";
51 public static final String TEMPLATE_REDEF_ERR = "TEMPLATE_REDEF_ERR";
52 public static final String TEMPLATE_UNDEF_ERR = "TEMPLATE_UNDEF_ERR";
53 public static final String VARIABLE_REDEF_ERR = "VARIABLE_REDEF_ERR";
54 public static final String VARIABLE_UNDEF_ERR = "VARIABLE_UNDEF_ERR";
55 public static final String CLASS_NOT_FOUND_ERR = "CLASS_NOT_FOUND_ERR";
56 public static final String METHOD_NOT_FOUND_ERR = "METHOD_NOT_FOUND_ERR";
|