Lines Matching defs:cause
38 * Constructs a new instance with the given message and cause.
40 * As specified in {@link Throwable}, the message in the given <code>cause</code> is not used in this instance's
46 * @param cause
47 * the cause (see {@link #getCause()}). A <code>null</code> value is allowed.
49 public IOExceptionWithCause(String message, Throwable cause) {
51 this.initCause(cause);
55 * Constructs a new instance with the given cause.
57 * The message is set to <code>cause==null ? null : cause.toString()</code>, which by default contains the class
58 * and message of <code>cause</code>. This constructor is useful for call sites that just wrap another throwable.
61 * @param cause
62 * the cause (see {@link #getCause()}). A <code>null</code> value is allowed.
64 public IOExceptionWithCause(Throwable cause) {
65 super(cause == null ? null : cause.toString());
66 this.initCause(cause);