JavaTM Platform
Standard Ed. 6

java.lang.reflect
클래스 UndeclaredThrowableException

java.lang.Object 
  상위를 확장 java.lang.Throwable 
      상위를 확장 java.lang.Exception 
          상위를 확장 java.lang.RuntimeException 
              상위를 확장 java.lang.reflect.UndeclaredThrowableException
모든 구현된 인터페이스:
Serializable


public class UndeclaredThrowableException
extends RuntimeException

호출 핸들러의 invoke 메소드가, 프록시 인스턴스로 불려 가고 호출 핸들러에 발송 된 메소드의 throws 절로 선언된 어느 예외 타입에도 할당하고 할 수 없는 확인이 끝난 예외 (RuntimeException 또는 Error 에 할당하고 할 수 없는 Throwable)를 throw 했을 경우, 프록시 인스턴스의 메소드 호출에 의해 throw 됩니다.

UndeclaredThrowableException 인스턴스는, 호출 핸들러에 의해 throw 된, 선언되어 있지 않은 확인이 끝난 예외를 포함하고 있어,getUndeclaredThrowable() 메소드로 꺼낼 수가 있습니다. UndeclaredThrowableExceptionRuntimeException 를 확장하기 위해(때문에), 확인이 끝난 예외를 랩 하는 미확인 예외가 됩니다.

1.4 릴리스에서는, 이 예외는 범용적인 예외 체인 기구에 적합하도록(듯이) 개량되고 있습니다. 「호출 핸들러에 의해 throw 된 선언되어 있지 않은 확인이 끝난 예외」 (구축시에 throw 되어getUndeclaredThrowable() 메소드를 개입시켜 액세스 가능)는,cause 메소드로 불리게 되어, 전술의 「유산 메소드」에 가세해 Throwable.getCause() 메소드를 개입시켜 액세스 가능합니다.

도입된 버젼:
1.3
관련 항목:
InvocationHandler , 직렬화 된 형식

생성자 의 개요
UndeclaredThrowableException (Throwable  undeclaredThrowable)
          지정된 ThrowableUndeclaredThrowableException 를 구축합니다.
UndeclaredThrowableException (Throwable  undeclaredThrowable, String  s)
          지정된 Throwable 와 상세 메세지로 UndeclaredThrowableException 를 구축합니다.
 
메소드의 개요
 Throwable getCause ()
          이 예외의 원인을 돌려줍니다 (이 UndeclaredThrowableException 내에 랩 된 Throwable 인스턴스,null 도 가능).
 Throwable getUndeclaredThrowable ()
          이 UndeclaredThrowableException 로 랩 된 Throwable 인스턴스를 돌려줍니다 (null 도 가능).
 
클래스 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
 

생성자 의 상세

UndeclaredThrowableException

public UndeclaredThrowableException(Throwable  undeclaredThrowable)
지정된 ThrowableUndeclaredThrowableException 를 구축합니다.

파라미터:
undeclaredThrowable - throw 된, 선언되어 있지 않은 확인이 끝난 예외

UndeclaredThrowableException

public UndeclaredThrowableException(Throwable  undeclaredThrowable,
                                    String  s)
지정된 Throwable 와 상세 메세지로 UndeclaredThrowableException 를 구축합니다.

파라미터:
undeclaredThrowable - throw 된, 선언되어 있지 않은 확인이 끝난 예외
s - 상세 메세지
메소드의 상세

getUndeclaredThrowable

public Throwable  getUndeclaredThrowable()
UndeclaredThrowableException 로 랩 된 Throwable 인스턴스를 돌려줍니다 (null 도 가능).

이 메소드는 범용적인 예외 체인 기능에 선행합니다. 이 정보를 취득하기 위해서,Throwable.getCause() 메소드를 사용하는 것을 추천합니다.

반환값:
throw 된, 선언되어 있지 않은 확인이 끝난 예외

getCause

public Throwable  getCause()
이 예외의 원인을 돌려줍니다 (이 UndeclaredThrowableException 내에 랩 된 Throwable 인스턴스,null 도 가능).

오버라이드(override):
클래스 Throwable 내의 getCause
반환값:
이 예외의 원인
도입된 버젼:
1.4

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.