Lines Matching refs:exception
5 // CatalogException.java - Catalog exception
27 * Signal Catalog exception.
29 * <p>This exception is thrown if an error occurs loading a
39 /** A wrapper around another exception */
57 * The embedded exception if tunnelling, or null.
59 private Exception exception = null;
65 * @param type The exception type
71 this.exception = null;
77 * @param type The exception type
82 this.exception = null;
86 * Create a new CatalogException wrapping an existing exception.
88 * <p>The existing exception will be embedded in the new
92 * @param e The exception to be wrapped in a CatalogException.
97 this.exception = e;
101 * Create a new CatalogException from an existing exception.
103 * <p>The existing exception will be embedded in the new
104 * one, but the new exception will have its own message.</p>
107 * @param e The exception to be wrapped in a CatalogException.
112 this.exception = e;
116 * Return a detail message for this exception.
118 * <p>If there is an embedded exception, and if the CatalogException
120 * the detail message from the embedded exception.</p>
128 if (message == null && exception != null) {
129 return exception.getMessage();
136 * Return the embedded exception, if any.
138 * @return The embedded exception, or null if there is none.
142 return exception;
146 * Return the exception type
148 * @return The exception type
156 * Override toString to pick up any embedded exception.
158 * @return A string representation of this exception.
162 if (exception != null) {
163 return exception.toString();