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());
}
}