Java Throwable.getSuppressed()

Syntax

Throwable.getSuppressed() has the following syntax.

public final Throwable [] getSuppressed()

Example

In the following code shows how to use Throwable.getSuppressed() method.


/* w w  w  . ja  va 2s .c o  m*/
public class Main {
  public static void main(String[] argv) {
    Throwable t = new Exception("from java2s.com");
    
    System.out.println(t.getSuppressed());


  }

}




















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable