Lines Matching refs:exception

8  * particular file as subject to the "Classpath" exception as provided
26 // SAX exception class.
46 * functionality. SAX handlers may throw this exception or
47 * any exception subclassed from it.</p>
51 * or an exception derived from a SAXException.</p>
71 this.exception = null;
82 this.exception = null;
87 * Create a new SAXException wrapping an existing exception.
89 * <p>The existing exception will be embedded in the new
93 * @param e The exception to be wrapped in a SAXException.
98 this.exception = e;
103 * Create a new SAXException from an existing exception.
105 * <p>The existing exception will be embedded in the new
106 * one, but the new exception will have its own message.</p>
109 * @param e The exception to be wrapped in a SAXException.
114 this.exception = e;
119 * Return a detail message for this exception.
121 * <p>If there is an embedded exception, and if the SAXException
123 * the detail message from the embedded exception.</p>
131 if (message == null && exception != null) {
132 return exception.getMessage();
140 * Return the embedded exception, if any.
142 * @return The embedded exception, or null if there is none.
146 return exception;
150 * Return the cause of the exception
152 * @return Return the cause of the exception
155 return exception;
159 * Override toString to pick up any embedded exception.
161 * @return A string representation of this exception.
165 if (exception != null) {
166 return super.toString() + "\n" + exception.toString();
180 * @serial The embedded exception if tunnelling, or null.
182 private Exception exception;