Lines Matching defs:Throwable

31  * The {@code Throwable} class is the superclass of all errors and
39 * Throwable} and any subclass of {@code Throwable} that is not also a
52 * throwable can {@linkplain Throwable#addSuppressed suppress} other
89 * {@link #initCause(Throwable)} method. New throwable classes that
92 * {@code Throwable} constructors that takes a cause.
97 * {@code Throwable}.
99 * <p>By convention, class {@code Throwable} and its subclasses have two
104 * {@code Throwable} (the cause), and one that takes a
105 * {@code String} (the detail message) and a {@code Throwable} (the
114 public class Throwable implements Serializable {
124 * Specific details about the Throwable. For example, for
162 * To allow Throwable objects to be made immutable and safely
164 * Throwable that are writable in response to user actions, cause,
182 * capability, any new fields added to Throwable that require
197 private Throwable cause = this;
214 private static final List<Throwable> SUPPRESSED_SENTINEL =
215 Collections.unmodifiableList(new ArrayList<Throwable>(0));
220 * unmodifiable sentinel list. When a serialized Throwable is
227 private List<Throwable> suppressedExceptions = SUPPRESSED_SENTINEL;
249 public Throwable() {
264 public Throwable(String message) {
286 public Throwable(String message, Throwable cause) {
309 public Throwable(Throwable cause) {
331 * <p>Note that the other constructors of {@code Throwable} treat
333 * writable. Subclasses of {@code Throwable} should document any
356 protected Throwable(String message, Throwable cause,
373 * @return the detail message string of this {@code Throwable} instance
400 * the constructors requiring a {@code Throwable}, or that was set after
401 * creation with the {@link #initCause(Throwable)} method. While it is
405 * exceptions to {@code Throwable}. Note that it is <i>not</i>
414 public synchronized Throwable getCause() {
425 * with {@link #Throwable(Throwable)} or
426 * {@link #Throwable(String,Throwable)}, this method cannot be called
445 * @return a reference to this {@code Throwable} instance.
449 * created with {@link #Throwable(Throwable)} or
450 * {@link #Throwable(String,Throwable)}, or this method has already
454 public synchronized Throwable initCause(Throwable cause) {
487 * {@code Throwable} object on the error output stream that is
576 * HighLevelException(Throwable cause) { super(cause); }
580 * MidLevelException(Throwable cause) { super(cause); }
647 // Guard against malicious overrides of Throwable.equals by
649 Set<Throwable> dejaVu =
650 Collections.newSetFromMap(new IdentityHashMap<Throwable, Boolean>());
661 for (Throwable se : getSuppressed())
665 Throwable ourCause = getCause();
679 Set<Throwable> dejaVu) {
702 for (Throwable se : getSuppressed())
707 Throwable ourCause = getCause();
770 * {@code Throwable} object information about the current state of
773 * <p>If the stack trace of this {@code Throwable} {@linkplain
774 * Throwable#Throwable(String, Throwable, boolean, boolean) is not
777 * @return a reference to this {@code Throwable} instance.
778 * @see java.lang.Throwable#printStackTrace()
780 public synchronized Throwable fillInStackTrace() {
789 private native Throwable fillInStackTrace(int dummy);
845 * <p>If the stack trace of this {@code Throwable} {@linkplain
846 * Throwable#Throwable(String, Throwable, boolean, boolean) is not
851 * this {@code Throwable}. The specified array is copied by this
853 * returns will have no affect on this {@code Throwable}'s stack
898 * Reads a {@code Throwable} from a stream, enforcing
916 List<Throwable> suppressed = null;
922 for (Throwable t : suppressedExceptions) {
967 * Write a {@code Throwable} object to a stream.
998 * {@linkplain #Throwable(String, Throwable, boolean, boolean) via
1003 * #initCause(Throwable) causes} another exception, the first
1041 public final synchronized void addSuppressed(Throwable exception) {
1057 private static final Throwable[] EMPTY_THROWABLE_ARRAY = new Throwable[0];
1065 * #Throwable(String, Throwable, boolean, boolean) suppression is
1074 public final synchronized Throwable[] getSuppressed() {