|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.lang.Throwable
java.lang.Error
java.lang.LinkageError
java.lang.ExceptionInInitializerError
public class ExceptionInInitializerError
static 초기화자로 예상외의 예외가 발생한 것을 통지합니다. ExceptionInInitializerError
가 throw 되어 static 초기화자 또는 static 변수의 초기화자의 평가시에 에러가 발생한 것을 나타냅니다.
1.4 릴리스에서는, 이 예외는 범용적인 예외 체인 기구에 적합하도록(듯이) 개량되고 있습니다. 구축시에 제공되어getException()
메소드를 개입시켜 액세스 되는 「보존되고 있는 throw 가능한 객체」는, 현재 cause 메소드로서 알려져 있습니다. 또, 이것은 전술한 「유산 메소드」라고와 같이 Throwable.getCause()
메소드를 개입시켜 액세스 할 수 있습니다.
생성자 의 개요 | |
---|---|
ExceptionInInitializerError ()
상세 메세지 캐릭터 라인으로서 null 를 가져, 보존되고 있는 throw 가능한 객체를 가지지 않는,ExceptionInInitializerError 를 구축합니다. |
|
ExceptionInInitializerError (String s)
지정된 상세 메세지 캐릭터 라인을 가지는 ExceptionInInitializerError 를 구축합니다. |
|
ExceptionInInitializerError (Throwable thrown)
throw 된 Throwable 객체에의 참조를 getException() 메소드에 의해 나중에 취득할 수 있도록(듯이) 보존하는 것에 의해, 새로운 ExceptionInInitializerError 클래스를 구축합니다. |
메소드의 개요 | |
---|---|
Throwable |
getCause ()
이 에러의 원인 (이 에러가 작성되는 원인이 된 static 인 초기화시에 발생한 예외)을 돌려줍니다. |
Throwable |
getException ()
static 인 초기화중에 발생한, 이 에러가 작성되는 원인이 된 예외를 돌려줍니다. |
클래스 java.lang. Throwable 로부터 상속된 메소드 |
---|
fillInStackTrace , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public ExceptionInInitializerError()
null
를 가져, 보존되고 있는 throw 가능한 객체를 가지지 않는,ExceptionInInitializerError
를 구축합니다. 상세 메세지란, 이 예외를 기술하는 String 입니다.
public ExceptionInInitializerError(Throwable thrown)
Throwable
객체에의 참조를 getException()
메소드에 의해 나중에 취득할 수 있도록(듯이) 보존하는 것에 의해, 새로운 ExceptionInInitializerError
클래스를 구축합니다. 상세 메세지 캐릭터 라인은 null
로 설정됩니다.
thrown
- throw 된 예외public ExceptionInInitializerError(String s)
Throwable.getMessage()
메소드에 의해 나중에 취득할 수 있도록(듯이) 보존됩니다. 보존되고 있는 throw 가능한 객체는 없습니다.
s
- 상세 메세지메소드의 상세 |
---|
public Throwable getException()
이 메소드는 범용적인 예외 체인 기능에 선행합니다. 이 정보를 취득하기 위해서,Throwable.getCause()
메소드를 사용하는 것을 추천합니다.
ExceptionInInitializerError
의 보존되고 있는 throw 가능한 객체. 이 ExceptionInInitializerError
가 보존되고 있는 throw 가능한 객체를 가지지 않는 경우는 null
public Throwable getCause()
Throwable
내의 getCause
null
(원인이 존재하지 않는가 미지의 경우)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.