Lines Matching refs:cause
81 * Returns the cause of this throwable or <code>null</code> if the
82 * cause is nonexistent or unknown. (The cause is the throwable that
93 * Initializes the <i>cause</i> of this throwable to the specified value.
94 * (The cause is the throwable that caused this throwable to get thrown.)
103 * @param cause the cause (which is saved for later retrieval by the
105 * permitted, and indicates that the cause is nonexistent or
108 * @throws IllegalArgumentException if <code>cause</code> is this
110 * be its own cause.)
116 public synchronized Throwable initCause(Throwable cause) {
118 if ((this.containedException == null) && (cause != null)) {
119 throw new IllegalStateException(XMLMessages.createXMLMessage(XMLErrorResources.ER_CANNOT_OVERWRITE_CAUSE, null)); //"Can't overwrite cause");
122 if (cause == this) {
127 this.containedException = cause;
335 // and higher will include the cause when printing the backtrace.