jaxp/src/com/sun/org/apache/xml/internal/dtm/DTMConfigurationException.java
author joehw
Wed, 11 Jun 2014 09:26:03 -0700
changeset 24887 47b6d4800c64
parent 12457 c348e06f0e82
permissions -rw-r--r--
8046443: A few typos in JAXP JavaDoc Reviewed-by: dfuchs, chegar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
/*
7f561c08de6b Initial load
duke
parents:
diff changeset
     2
 * reserved comment block
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
 * DO NOT REMOVE OR ALTER!
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
/*
7f561c08de6b Initial load
duke
parents:
diff changeset
     6
 * Copyright 1999-2004 The Apache Software Foundation.
7f561c08de6b Initial load
duke
parents:
diff changeset
     7
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
     8
 * Licensed under the Apache License, Version 2.0 (the "License");
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
 * you may not use this file except in compliance with the License.
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
 * You may obtain a copy of the License at
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
 *     http://www.apache.org/licenses/LICENSE-2.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
 * Unless required by applicable law or agreed to in writing, software
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
 * distributed under the License is distributed on an "AS IS" BASIS,
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
 * See the License for the specific language governing permissions and
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
 * limitations under the License.
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
/*
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
 * $Id: DTMConfigurationException.java,v 1.2.4.1 2005/09/15 08:14:52 suresh_emailid Exp $
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
package com.sun.org.apache.xml.internal.dtm;
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
import javax.xml.transform.SourceLocator;
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
/**
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
 * Indicates a serious configuration error.
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
public class DTMConfigurationException extends DTMException {
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
    static final long serialVersionUID = -4607874078818418046L;
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
     * Create a new <code>DTMConfigurationException</code> with no
24887
47b6d4800c64 8046443: A few typos in JAXP JavaDoc
joehw
parents: 12457
diff changeset
    35
     * detail message.
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
    public DTMConfigurationException() {
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
        super("Configuration Error");
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
     * Create a new <code>DTMConfigurationException</code> with
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
     * the <code>String </code> specified as an error message.
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
     * @param msg The error message for the exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
    public DTMConfigurationException(String msg) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
        super(msg);
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
     * Create a new <code>DTMConfigurationException</code> with a
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
     * given <code>Exception</code> base cause of the error.
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
     * @param e The exception to be encapsulated in a
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
     * DTMConfigurationException.
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
    public DTMConfigurationException(Throwable e) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
        super(e);
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
     * Create a new <code>DTMConfigurationException</code> with the
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
     * given <code>Exception</code> base cause and detail message.
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
     * @param msg The detail message.
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
     * @param e The exception to be wrapped in a DTMConfigurationException
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
    public DTMConfigurationException(String msg, Throwable e) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
        super(msg, e);
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
     * Create a new DTMConfigurationException from a message and a Locator.
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
     * <p>This constructor is especially useful when an application is
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
     * creating its own exception from within a DocumentHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
     * callback.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
     * @param message The error or warning message.
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
     * @param locator The locator object for the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
    public DTMConfigurationException(String message,
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
                                             SourceLocator locator) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
        super(message, locator);
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
     * Wrap an existing exception in a DTMConfigurationException.
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
     * @param message The error or warning message, or null to
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
     *                use the message from the embedded exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
     * @param locator The locator object for the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
     * @param e Any exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
    public DTMConfigurationException(String message,
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
                                             SourceLocator locator,
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
                                             Throwable e) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
        super(message, locator, e);
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
}