ExceptionInInitializerError


ExceptionInInitializerError java.lang

Java 1.1 serializable error

This error is thrown by the Java Virtual Machine when an exception occurs in the static initializer of a class. You can use the getException( ) method to obtain the Throwable object that was thrown from the initializer. In Java 1.4 and later, getException( ) has been superseded by the more general getCause( ) method of the THRowable class.

Figure 10-22. java.lang.ExceptionInInitializerError

 public class  ExceptionInInitializerError  extends LinkageError {  // Public Constructors  public  ExceptionInInitializerError  ( );        public  ExceptionInInitializerError  (String  s  );        public  ExceptionInInitializerError  (Throwable  thrown  );  // Public Instance Methods  public Throwable  getException  ( );  default:null   // Public Methods Overriding Throwable   1.4  public Throwable  getCause  ( );  default:null  } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net