jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/DTMException.java
author joehw
Tue, 14 Feb 2017 10:14:06 -0800
changeset 46005 49e2e73f90f6
parent 44797 8b3b3b911b8a
permissions -rw-r--r--
8172469: Transform Transformer Exceptions Reviewed-by: dfuchs, lancea, rriggs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
/*
46005
49e2e73f90f6 8172469: Transform Transformer Exceptions
joehw
parents: 44797
diff changeset
     2
 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
/*
44797
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 31497
diff changeset
     5
 * Licensed to the Apache Software Foundation (ASF) under one or more
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 31497
diff changeset
     6
 * contributor license agreements.  See the NOTICE file distributed with
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 31497
diff changeset
     7
 * this work for additional information regarding copyright ownership.
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 31497
diff changeset
     8
 * The ASF licenses this file to You under the Apache License, Version 2.0
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 31497
diff changeset
     9
 * (the "License"); you may not use this file except in compliance with
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 31497
diff changeset
    10
 * the License.  You may obtain a copy of the License at
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
 *
44797
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 31497
diff changeset
    12
 *      http://www.apache.org/licenses/LICENSE-2.0
6
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
 */
44797
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 31497
diff changeset
    20
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
package com.sun.org.apache.xml.internal.dtm;
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
/**
46005
49e2e73f90f6 8172469: Transform Transformer Exceptions
joehw
parents: 44797
diff changeset
    24
 * This class specifies an exceptional condition that occurred
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
 * in the DTM module.
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
public class DTMException extends RuntimeException {
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
    static final long serialVersionUID = -775576419181334734L;
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
     * Create a new DTMException.
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
     * @param message The error or warning message.
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
    public DTMException(String message) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
        super(message);
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
     * Create a new DTMException wrapping an existing exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
     * @param e The exception to be wrapped.
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
    public DTMException(Throwable e) {
46005
49e2e73f90f6 8172469: Transform Transformer Exceptions
joehw
parents: 44797
diff changeset
    45
        super(e);
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
     * Wrap an existing exception in a DTMException.
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
     * <p>This is used for throwing processor exceptions before
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
     * the processing has started.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
     * @param message The error or warning message, or null to
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
     *                use the message from the embedded exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
     * @param e Any exception
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
    public DTMException(String message, Throwable e) {
46005
49e2e73f90f6 8172469: Transform Transformer Exceptions
joehw
parents: 44797
diff changeset
    59
        super(message, e);
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
    }