jaxp/src/share/classes/org/xml/sax/SAXParseException.java
author kvn
Fri, 20 Jun 2008 11:10:05 -0700
changeset 762 1b26adb5fea1
parent 6 7f561c08de6b
permissions -rw-r--r--
6715633: when matching a memory node the adr_type should not change Summary: verify the adr_type of a mach node was not changed Reviewed-by: rasbold, never
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
 * Copyright 2000-2005 Sun Microsystems, Inc.  All Rights Reserved.
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
7f561c08de6b Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
7f561c08de6b Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
7f561c08de6b Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
 * have any questions.
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
// SAX exception class.
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
// http://www.saxproject.org
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
// No warranty; no copyright -- use this as you will.
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
// $Id: SAXParseException.java,v 1.2 2004/11/03 22:55:32 jsuttor Exp $
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
package org.xml.sax;
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
/**
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
 * Encapsulate an XML parse error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
 * <blockquote>
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
 * <em>This module, both source code and documentation, is in the
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
 * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
 * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
 * for further information.
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
 * </blockquote>
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
 * <p>This exception may include information for locating the error
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
 * in the original XML document, as if it came from a {@link Locator}
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
 * object.  Note that although the application
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
 * will receive a SAXParseException as the argument to the handlers
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
 * in the {@link org.xml.sax.ErrorHandler ErrorHandler} interface,
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
 * the application is not actually required to throw the exception;
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
 * instead, it can simply read the information in it and take a
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
 * different action.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
 * <p>Since this exception is a subclass of {@link org.xml.sax.SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
 * SAXException}, it inherits the ability to wrap another exception.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
 * @since SAX 1.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
 * @author David Megginson
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
 * @see org.xml.sax.SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
 * @see org.xml.sax.Locator
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
 * @see org.xml.sax.ErrorHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
public class SAXParseException extends SAXException {
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
    //////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
    // Constructors.
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
    //////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
     * Create a new SAXParseException from a message and a Locator.
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
     * <p>This constructor is especially useful when an application is
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
     * creating its own exception from within a {@link org.xml.sax.ContentHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
     * ContentHandler} callback.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
     * @param message The error or warning message.
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
     * @param locator The locator object for the error or warning (may be
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
     *        null).
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
     * @see org.xml.sax.Locator
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
    public SAXParseException (String message, Locator locator) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
        super(message);
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
        if (locator != null) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
            init(locator.getPublicId(), locator.getSystemId(),
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
                 locator.getLineNumber(), locator.getColumnNumber());
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
        } else {
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
            init(null, null, -1, -1);
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
        }
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
     * Wrap an existing exception in a SAXParseException.
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
     * <p>This constructor is especially useful when an application is
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
     * creating its own exception from within a {@link org.xml.sax.ContentHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
     * ContentHandler} callback, and needs to wrap an existing exception that is not a
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
     * subclass of {@link org.xml.sax.SAXException SAXException}.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
     * @param message The error or warning message, or null to
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
     *                use the message from the embedded exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
     * @param locator The locator object for the error or warning (may be
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
     *        null).
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
     * @param e Any exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
     * @see org.xml.sax.Locator
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
    public SAXParseException (String message, Locator locator,
7f561c08de6b Initial load
duke
parents:
diff changeset
   108
                              Exception e) {
7f561c08de6b Initial load
duke
parents:
diff changeset
   109
        super(message, e);
7f561c08de6b Initial load
duke
parents:
diff changeset
   110
        if (locator != null) {
7f561c08de6b Initial load
duke
parents:
diff changeset
   111
            init(locator.getPublicId(), locator.getSystemId(),
7f561c08de6b Initial load
duke
parents:
diff changeset
   112
                 locator.getLineNumber(), locator.getColumnNumber());
7f561c08de6b Initial load
duke
parents:
diff changeset
   113
        } else {
7f561c08de6b Initial load
duke
parents:
diff changeset
   114
            init(null, null, -1, -1);
7f561c08de6b Initial load
duke
parents:
diff changeset
   115
        }
7f561c08de6b Initial load
duke
parents:
diff changeset
   116
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   117
7f561c08de6b Initial load
duke
parents:
diff changeset
   118
7f561c08de6b Initial load
duke
parents:
diff changeset
   119
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   120
     * Create a new SAXParseException.
7f561c08de6b Initial load
duke
parents:
diff changeset
   121
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   122
     * <p>This constructor is most useful for parser writers.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   123
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   124
     * <p>All parameters except the message are as if
7f561c08de6b Initial load
duke
parents:
diff changeset
   125
     * they were provided by a {@link Locator}.  For example, if the
7f561c08de6b Initial load
duke
parents:
diff changeset
   126
     * system identifier is a URL (including relative filename), the
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
     * caller must resolve it fully before creating the exception.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   130
     * @param message The error or warning message.
7f561c08de6b Initial load
duke
parents:
diff changeset
   131
     * @param publicId The public identifier of the entity that generated
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
     *                 the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   133
     * @param systemId The system identifier of the entity that generated
7f561c08de6b Initial load
duke
parents:
diff changeset
   134
     *                 the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   135
     * @param lineNumber The line number of the end of the text that
7f561c08de6b Initial load
duke
parents:
diff changeset
   136
     *                   caused the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   137
     * @param columnNumber The column number of the end of the text that
7f561c08de6b Initial load
duke
parents:
diff changeset
   138
     *                     cause the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   139
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   140
    public SAXParseException (String message, String publicId, String systemId,
7f561c08de6b Initial load
duke
parents:
diff changeset
   141
                              int lineNumber, int columnNumber)
7f561c08de6b Initial load
duke
parents:
diff changeset
   142
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   143
        super(message);
7f561c08de6b Initial load
duke
parents:
diff changeset
   144
        init(publicId, systemId, lineNumber, columnNumber);
7f561c08de6b Initial load
duke
parents:
diff changeset
   145
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   146
7f561c08de6b Initial load
duke
parents:
diff changeset
   147
7f561c08de6b Initial load
duke
parents:
diff changeset
   148
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   149
     * Create a new SAXParseException with an embedded exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   150
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   151
     * <p>This constructor is most useful for parser writers who
7f561c08de6b Initial load
duke
parents:
diff changeset
   152
     * need to wrap an exception that is not a subclass of
7f561c08de6b Initial load
duke
parents:
diff changeset
   153
     * {@link org.xml.sax.SAXException SAXException}.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   154
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   155
     * <p>All parameters except the message and exception are as if
7f561c08de6b Initial load
duke
parents:
diff changeset
   156
     * they were provided by a {@link Locator}.  For example, if the
7f561c08de6b Initial load
duke
parents:
diff changeset
   157
     * system identifier is a URL (including relative filename), the
7f561c08de6b Initial load
duke
parents:
diff changeset
   158
     * caller must resolve it fully before creating the exception.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   159
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   160
     * @param message The error or warning message, or null to use
7f561c08de6b Initial load
duke
parents:
diff changeset
   161
     *                the message from the embedded exception.
7f561c08de6b Initial load
duke
parents:
diff changeset
   162
     * @param publicId The public identifier of the entity that generated
7f561c08de6b Initial load
duke
parents:
diff changeset
   163
     *                 the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   164
     * @param systemId The system identifier of the entity that generated
7f561c08de6b Initial load
duke
parents:
diff changeset
   165
     *                 the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   166
     * @param lineNumber The line number of the end of the text that
7f561c08de6b Initial load
duke
parents:
diff changeset
   167
     *                   caused the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   168
     * @param columnNumber The column number of the end of the text that
7f561c08de6b Initial load
duke
parents:
diff changeset
   169
     *                     cause the error or warning.
7f561c08de6b Initial load
duke
parents:
diff changeset
   170
     * @param e Another exception to embed in this one.
7f561c08de6b Initial load
duke
parents:
diff changeset
   171
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   172
    public SAXParseException (String message, String publicId, String systemId,
7f561c08de6b Initial load
duke
parents:
diff changeset
   173
                              int lineNumber, int columnNumber, Exception e)
7f561c08de6b Initial load
duke
parents:
diff changeset
   174
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   175
        super(message, e);
7f561c08de6b Initial load
duke
parents:
diff changeset
   176
        init(publicId, systemId, lineNumber, columnNumber);
7f561c08de6b Initial load
duke
parents:
diff changeset
   177
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   178
7f561c08de6b Initial load
duke
parents:
diff changeset
   179
7f561c08de6b Initial load
duke
parents:
diff changeset
   180
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   181
     * Internal initialization method.
7f561c08de6b Initial load
duke
parents:
diff changeset
   182
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   183
     * @param publicId The public identifier of the entity which generated the exception,
7f561c08de6b Initial load
duke
parents:
diff changeset
   184
     *        or null.
7f561c08de6b Initial load
duke
parents:
diff changeset
   185
     * @param systemId The system identifier of the entity which generated the exception,
7f561c08de6b Initial load
duke
parents:
diff changeset
   186
     *        or null.
7f561c08de6b Initial load
duke
parents:
diff changeset
   187
     * @param lineNumber The line number of the error, or -1.
7f561c08de6b Initial load
duke
parents:
diff changeset
   188
     * @param columnNumber The column number of the error, or -1.
7f561c08de6b Initial load
duke
parents:
diff changeset
   189
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   190
    private void init (String publicId, String systemId,
7f561c08de6b Initial load
duke
parents:
diff changeset
   191
                       int lineNumber, int columnNumber)
7f561c08de6b Initial load
duke
parents:
diff changeset
   192
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   193
        this.publicId = publicId;
7f561c08de6b Initial load
duke
parents:
diff changeset
   194
        this.systemId = systemId;
7f561c08de6b Initial load
duke
parents:
diff changeset
   195
        this.lineNumber = lineNumber;
7f561c08de6b Initial load
duke
parents:
diff changeset
   196
        this.columnNumber = columnNumber;
7f561c08de6b Initial load
duke
parents:
diff changeset
   197
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   198
7f561c08de6b Initial load
duke
parents:
diff changeset
   199
7f561c08de6b Initial load
duke
parents:
diff changeset
   200
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   201
     * Get the public identifier of the entity where the exception occurred.
7f561c08de6b Initial load
duke
parents:
diff changeset
   202
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   203
     * @return A string containing the public identifier, or null
7f561c08de6b Initial load
duke
parents:
diff changeset
   204
     *         if none is available.
7f561c08de6b Initial load
duke
parents:
diff changeset
   205
     * @see org.xml.sax.Locator#getPublicId
7f561c08de6b Initial load
duke
parents:
diff changeset
   206
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   207
    public String getPublicId ()
7f561c08de6b Initial load
duke
parents:
diff changeset
   208
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   209
        return this.publicId;
7f561c08de6b Initial load
duke
parents:
diff changeset
   210
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   211
7f561c08de6b Initial load
duke
parents:
diff changeset
   212
7f561c08de6b Initial load
duke
parents:
diff changeset
   213
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   214
     * Get the system identifier of the entity where the exception occurred.
7f561c08de6b Initial load
duke
parents:
diff changeset
   215
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   216
     * <p>If the system identifier is a URL, it will have been resolved
7f561c08de6b Initial load
duke
parents:
diff changeset
   217
     * fully.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   218
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   219
     * @return A string containing the system identifier, or null
7f561c08de6b Initial load
duke
parents:
diff changeset
   220
     *         if none is available.
7f561c08de6b Initial load
duke
parents:
diff changeset
   221
     * @see org.xml.sax.Locator#getSystemId
7f561c08de6b Initial load
duke
parents:
diff changeset
   222
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   223
    public String getSystemId ()
7f561c08de6b Initial load
duke
parents:
diff changeset
   224
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   225
        return this.systemId;
7f561c08de6b Initial load
duke
parents:
diff changeset
   226
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   227
7f561c08de6b Initial load
duke
parents:
diff changeset
   228
7f561c08de6b Initial load
duke
parents:
diff changeset
   229
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   230
     * The line number of the end of the text where the exception occurred.
7f561c08de6b Initial load
duke
parents:
diff changeset
   231
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   232
     * <p>The first line is line 1.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   233
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   234
     * @return An integer representing the line number, or -1
7f561c08de6b Initial load
duke
parents:
diff changeset
   235
     *         if none is available.
7f561c08de6b Initial load
duke
parents:
diff changeset
   236
     * @see org.xml.sax.Locator#getLineNumber
7f561c08de6b Initial load
duke
parents:
diff changeset
   237
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   238
    public int getLineNumber ()
7f561c08de6b Initial load
duke
parents:
diff changeset
   239
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   240
        return this.lineNumber;
7f561c08de6b Initial load
duke
parents:
diff changeset
   241
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   242
7f561c08de6b Initial load
duke
parents:
diff changeset
   243
7f561c08de6b Initial load
duke
parents:
diff changeset
   244
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   245
     * The column number of the end of the text where the exception occurred.
7f561c08de6b Initial load
duke
parents:
diff changeset
   246
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   247
     * <p>The first column in a line is position 1.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   248
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   249
     * @return An integer representing the column number, or -1
7f561c08de6b Initial load
duke
parents:
diff changeset
   250
     *         if none is available.
7f561c08de6b Initial load
duke
parents:
diff changeset
   251
     * @see org.xml.sax.Locator#getColumnNumber
7f561c08de6b Initial load
duke
parents:
diff changeset
   252
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   253
    public int getColumnNumber ()
7f561c08de6b Initial load
duke
parents:
diff changeset
   254
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   255
        return this.columnNumber;
7f561c08de6b Initial load
duke
parents:
diff changeset
   256
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   257
7f561c08de6b Initial load
duke
parents:
diff changeset
   258
7f561c08de6b Initial load
duke
parents:
diff changeset
   259
    //////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
   260
    // Internal state.
7f561c08de6b Initial load
duke
parents:
diff changeset
   261
    //////////////////////////////////////////////////////////////////////
7f561c08de6b Initial load
duke
parents:
diff changeset
   262
7f561c08de6b Initial load
duke
parents:
diff changeset
   263
7f561c08de6b Initial load
duke
parents:
diff changeset
   264
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   265
     * @serial The public identifier, or null.
7f561c08de6b Initial load
duke
parents:
diff changeset
   266
     * @see #getPublicId
7f561c08de6b Initial load
duke
parents:
diff changeset
   267
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   268
    private String publicId;
7f561c08de6b Initial load
duke
parents:
diff changeset
   269
7f561c08de6b Initial load
duke
parents:
diff changeset
   270
7f561c08de6b Initial load
duke
parents:
diff changeset
   271
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   272
     * @serial The system identifier, or null.
7f561c08de6b Initial load
duke
parents:
diff changeset
   273
     * @see #getSystemId
7f561c08de6b Initial load
duke
parents:
diff changeset
   274
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   275
    private String systemId;
7f561c08de6b Initial load
duke
parents:
diff changeset
   276
7f561c08de6b Initial load
duke
parents:
diff changeset
   277
7f561c08de6b Initial load
duke
parents:
diff changeset
   278
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   279
     * @serial The line number, or -1.
7f561c08de6b Initial load
duke
parents:
diff changeset
   280
     * @see #getLineNumber
7f561c08de6b Initial load
duke
parents:
diff changeset
   281
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   282
    private int lineNumber;
7f561c08de6b Initial load
duke
parents:
diff changeset
   283
7f561c08de6b Initial load
duke
parents:
diff changeset
   284
7f561c08de6b Initial load
duke
parents:
diff changeset
   285
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   286
     * @serial The column number, or -1.
7f561c08de6b Initial load
duke
parents:
diff changeset
   287
     * @see #getColumnNumber
7f561c08de6b Initial load
duke
parents:
diff changeset
   288
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   289
    private int columnNumber;
7f561c08de6b Initial load
duke
parents:
diff changeset
   290
7f561c08de6b Initial load
duke
parents:
diff changeset
   291
    // Added serialVersionUID to preserve binary compatibility
7f561c08de6b Initial load
duke
parents:
diff changeset
   292
    static final long serialVersionUID = -5651165872476709336L;
7f561c08de6b Initial load
duke
parents:
diff changeset
   293
}
7f561c08de6b Initial load
duke
parents:
diff changeset
   294
7f561c08de6b Initial load
duke
parents:
diff changeset
   295
// end of SAXParseException.java