|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.reflect.InvocationTargetException
public class InvocationTargetException
InvocationTargetException 는, 불려 가는 메소드 또는 생성자 이 throw 하는 예외를 랩 하는, 체크가 끝난 예외입니다.
1.4 릴리스에서는, 이 예외는 범용적인 예외 체인 기구에 적합하도록(듯이) 개량되고 있습니다. 구축시에 제공되어getTargetException()
메소드를 개입시켜 액세스 되는 「타겟 예외」는, 현재 「cause」메소드로서 알려져 있습니다. 또, 이것은 전술한 「유산 메소드」라고와 같이 Throwable.getCause()
를 개입시켜 액세스 할 수 있습니다.
Method
,
Constructor
,
직렬화 된 형식 생성자 의 개요 | |
---|---|
protected |
InvocationTargetException ()
타겟 예외에 null 를 지정해,InvocationTargetException 를 구축합니다. |
|
InvocationTargetException (Throwable target)
타겟 예외를 사용해 InvocationTargetException 를 구축합니다. |
|
InvocationTargetException (Throwable target,
String s)
타겟 예외 및 상세 메세지를 사용해, InvocationTargetException 를 구축합니다. |
메소드의 개요 | |
---|---|
Throwable |
getCause ()
이 예외의 원인 (throw 된 타겟 예외,null 도 가능)을 돌려줍니다. |
Throwable |
getTargetException ()
throw 된 타겟 예외를 가져옵니다. |
클래스 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 |
생성자 의 상세 |
---|
protected InvocationTargetException()
null
를 지정해,InvocationTargetException
를 구축합니다.
public InvocationTargetException(Throwable target)
target
- 타겟 예외public InvocationTargetException(Throwable target, String s)
target
- 타겟 예외s
- 상세 메세지메소드의 상세 |
---|
public Throwable getTargetException()
이 메소드는 범용적인 예외 체인 기능에 선행합니다. 이 정보를 취득하기 위해서,Throwable.getCause()
메소드를 사용하는 것을 추천합니다.
public Throwable getCause()
Throwable
내의 getCause
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.