Source Code Cross Referenced for XMLStreamException.java in  » Science » javolution-5.2 » javolution » xml » stream » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » javolution 5.2 » javolution.xml.stream 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
003:         * Copyright (C) 2005 - Javolution (http://javolution.org/)
004:         * All rights reserved.
005:         * 
006:         * Permission to use, copy, modify, and distribute this software is
007:         * freely granted, provided that this notice is preserved.
008:         */
009:        package javolution.xml.stream;
010:
011:        /**
012:         * This class represents the base exception for unexpected processing errors.
013:         * 
014:         * @author  <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
015:         * @version 3.8, May 22, 2006
016:         */
017:        public class XMLStreamException extends Exception {
018:
019:            /**
020:             * Holds the nested exception if any.
021:             */
022:            private Throwable _nested;
023:
024:            /**
025:             * Holds the location.
026:             */
027:            private Location _location;
028:
029:            /**
030:             * Default constructor
031:             */
032:            public XMLStreamException() {
033:                super ();
034:            }
035:
036:            /**
037:             * Constructs an exception with the assocated message.
038:             * 
039:             * @param msg the message to report.
040:             */
041:            public XMLStreamException(String msg) {
042:                super (msg);
043:            }
044:
045:            /**
046:             * Constructs an exception with the assocated nested exception.
047:             * 
048:             * @param nested the nested exception.
049:             */
050:            public XMLStreamException(Throwable nested) {
051:                _nested = nested;
052:            }
053:
054:            /**
055:             * Constructs an exception with the assocated message and exception.
056:             * 
057:             * @param msg the message to report.
058:             * @param nested the nested exception.
059:             */
060:            public XMLStreamException(String msg, Throwable nested) {
061:                super (msg);
062:                _nested = nested;
063:            }
064:
065:            /**
066:             * Constructs an exception with the assocated message, exception and
067:             * location.
068:             * 
069:             * @param msg the message to report.
070:             * @param location the location.
071:             * @param nested the nested exception.
072:             */
073:            public XMLStreamException(String msg, Location location,
074:                    Throwable nested) {
075:                super (msg);
076:                _nested = nested;
077:                _location = location;
078:            }
079:
080:            /**
081:             * Constructs an exception with the assocated message, exception and
082:             * location.
083:             * 
084:             * @param msg the message to report
085:             * @param location the location of the error
086:             */
087:            public XMLStreamException(String msg, Location location) {
088:                super (msg);
089:                _location = location;
090:            }
091:
092:            /**
093:             * Returns the nested exception.
094:             * 
095:             * @return the nested exception
096:             */
097:            public Throwable getNestedException() {
098:                return _nested;
099:            }
100:
101:            /**
102:             * Returns the location of the exception.
103:             * 
104:             * @return the location of the exception or <code>null</code> 
105:             *         if none is available
106:             */
107:            public Location getLocation() {
108:                return _location;
109:            }
110:
111:            /**
112:             * Returns the textual representation of this exception.
113:             * 
114:             * @return the string representation of the exception.
115:             */
116:            public String toString() {
117:                String msg = super .toString();
118:                if (_location != null) {
119:                    msg += " (at line " + _location.getLineNumber()
120:                            + ", column " + _location.getColumnNumber() + ")";
121:                }
122:                if (_nested != null) {
123:                    msg += " caused by " + _nested.toString();
124:                }
125:                return msg;
126:            }
127:
128:            private static final long serialVersionUID = 1L;
129:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.