Class AWTException in Java

digitization, transformation, binary

Class AWTException in Java

An AWTException is thrown from an application when an exception has occurred in  Abstract Window Toolkit during execution. An AWTException; thrown to indicate an exceptional condition; must be caught or declared in a throws clause.

The hierarchy of AWTException

AWTException hierarchy
AWTException hierarchy

Implemented interface

The class structure of AWTException is given as:

public class java.awt.AWTException extends java.lang.Exception{
//constructor
public AWTException(String message);//constructs an AWTException with the specified detailed message.
} 

The class AWTException also inherits methods from class Object and Throwable.

Ads code goes here

 

From Object classFrom Throwable class
clone()fillInStackTrace()
getClass()getMessage()
notify()printStackTrace()
wait()printStackTrace(PrintWriter)
wait(long, int)getLocalizedMessage()
wait(long)printStackTrace(PrintStream)
equals(Object)addSuppressed()
finalize()getCause()
hashCode()getSuppressed()
notifyAll()getStackTrace()
hashCode()initCause()
notifyAll()setStackTrace()
toString()

Share and Enjoy !

READ  Class MalformedURLException in Java

Leave a Comment

Your email address will not be published. Required fields are marked *