Source Code Cross Referenced for XMLStreamException.java in  » 6.0-JDK-Core » xml » javax » xml » stream » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » xml » javax.xml.stream 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001        package javax.xml.stream;
002
003        /**
004         * The base exception for unexpected processing errors.  This Exception
005         * class is used to report well-formedness errors as well as unexpected
006         * processing conditions.
007         * @version 1.0
008         * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
009         * @since 1.6
010         */
011        public class XMLStreamException extends Exception {
012
013            protected Throwable nested;
014            protected Location location;
015
016            /**
017             * Default constructor
018             */
019            public XMLStreamException() {
020                super ();
021            }
022
023            /**
024             * Construct an exception with the assocated message.
025             *
026             * @param msg the message to report
027             */
028            public XMLStreamException(String msg) {
029                super (msg);
030            }
031
032            /**
033             * Construct an exception with the assocated exception
034             *
035             * @param th a nested exception
036             */
037            public XMLStreamException(Throwable th) {
038                super (th);
039                nested = th;
040            }
041
042            /**
043             * Construct an exception with the assocated message and exception
044             *
045             * @param th a nested exception
046             * @param msg the message to report
047             */
048            public XMLStreamException(String msg, Throwable th) {
049                super (msg, th);
050                nested = th;
051            }
052
053            /**
054             * Construct an exception with the assocated message, exception and location.
055             *
056             * @param th a nested exception
057             * @param msg the message to report
058             * @param location the location of the error 
059             */
060            public XMLStreamException(String msg, Location location,
061                    Throwable th) {
062                super ("ParseError at [row,col]:[" + location.getLineNumber()
063                        + "," + location.getColumnNumber() + "]\n"
064                        + "Message: " + msg);
065                nested = th;
066                this .location = location;
067            }
068
069            /**
070             * Construct an exception with the assocated message, exception and location.
071             *
072             * @param msg the message to report
073             * @param location the location of the error 
074             */
075            public XMLStreamException(String msg, Location location) {
076                super ("ParseError at [row,col]:[" + location.getLineNumber()
077                        + "," + location.getColumnNumber() + "]\n"
078                        + "Message: " + msg);
079                this .location = location;
080            }
081
082            /**
083             * Gets the nested exception.
084             *
085             * @return Nested exception
086             */
087            public Throwable getNestedException() {
088                return nested;
089            }
090
091            /**
092             * Gets the location of the exception
093             *
094             * @return the location of the exception, may be null if none is available
095             */
096            public Location getLocation() {
097                return location;
098            }
099
100        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.