JavaTM 2
Platform
Std.  Ed.  v1. 4.0

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)¸¦ ½½·Î¿ì ÇßÀ» °æ¿ì, ÇÁ·Ï½Ã ÀνºÅϽºÀÇ ¸Þ¼Òµå È£Ãâ¿¡ ÀÇÇØ ½½·Î¿ì µË´Ï´Ù.

UndeclaredThrowableException ÀνºÅϽº´Â È£Ãâ Çڵ鷯¿¡ ÀÇÇØ ½½·Î¿ì µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³­ ¿¹¿Ü¸¦ ÀúÀåÇϰí ÀÖ¾î,getUndeclaredThrowable() ¸Þ¼Òµå·Î ²¨³¾ ¼ö°¡ ÀÖ½À´Ï´Ù. UndeclaredThrowableException ´Â RuntimeException ¸¦ È®ÀåÇϱâ À§ÇØ(¶§¹®¿¡), È®ÀÎÀÌ ³¡³­ ¿¹¿Ü¸¦ ·¦ ÇÏ´Â ¹ÌÈ®ÀÎ ¿¹¿Ü°¡ µË´Ï´Ù.

¸±¸®½º 1.4 ¿¡¼­´Â ÀÌ ¿¹¿Ü´Â ¹ü¿ëÀÇ ¿¹¿Ü ¿¬¼â ±â±¸¿¡ ¸ÂÃß¾î °³·®µÇ°í ÀÖ½À´Ï´Ù. ¡¸È£Ãâ Çڵ鷯¿¡ ÀÇÇØ ½½·Î¿ì µÈ ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³­ ¿¹¿Ü¡¹ (±¸Ãà½Ã¿¡ ½½·Î¿ì µÇ¾îgetUndeclaredThrowable() ¸Þ¼Òµå¸¦ °³ÀÔ½ÃÄÑ ¾×¼¼½º °¡´É)´Â cause ¸Þ¼Òµå·Î ºÒ¸®°Ô µÇ¾î, Àü¼úÀÇ ¡¸À¯»ê ¸Þ¼Òµå¡¹¿¡ °¡¼¼ÇØ Throwable.getCause() ¸Þ¼Òµå¸¦ °³ÀÔ½ÃÄÑ ¾×¼¼½º °¡´ÉÇÕ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
JDK1. 3
°ü·Ã Ç׸ñ:
InvocationHandler , Á÷·ÄÈ­ µÈ Çü½Ä

»ý¼ºÀÚÀÇ °³¿ä
UndeclaredThrowableException (Throwable  undeclaredThrowable)
          ÁöÁ¤µÈ Throwable ·Î UndeclaredThrowableException ¸¦ ±¸ÃàÇÕ´Ï´Ù.
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)
ÁöÁ¤µÈ Throwable ·Î UndeclaredThrowableException ¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
undeclaredThrowable - ½½·Î¿ì µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³­ ¿¹¿Ü

UndeclaredThrowableException

public UndeclaredThrowableException(Throwable  undeclaredThrowable,
                                    String  s)
ÁöÁ¤µÈ Throwable ¿Í »ó¼¼ ¸Þ¼¼Áö·Î UndeclaredThrowableException ¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
undeclaredThrowable - ½½·Î¿ì µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³­ ¿¹¿Ü
s - »ó¼¼ ¸Þ¼¼Áö
¸Þ¼ÒµåÀÇ »ó¼¼

getUndeclaredThrowable

public Throwable  getUndeclaredThrowable()
ÀÌ UndeclaredThrowableException ·Î ·¦ µÈ Throwable ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù (null µµ °¡´É).

ÀÌ ¸Þ¼Òµå´Â ¹ü¿ëÀûÀÎ ¿¹¿Ü üÀÎ ±â´É¿¡ ¼±ÇàÇÕ´Ï´Ù. ÀÌ Á¤º¸¸¦ ÃëµæÇϱâ À§Çؼ­,Throwable.getCause() ¸Þ¼Òµå¸¦ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

¹Ýȯ°ª:
½½·Î¿ì µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³­ ¿¹¿Ü

getCause

public Throwable  getCause()
ÀÌ ¿¹¿ÜÀÇ ¿øÀÎÀ» µ¹·ÁÁÝ´Ï´Ù (ÀÌ UndeclaredThrowableException ³»¿¡ ·¦ µÈ Throwable ÀνºÅϽº,null µµ °¡´É).

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Throwable ³»ÀÇ getCause
¹Ýȯ°ª:
ÀÌ ¿¹¿ÜÀÇ ¿øÀÎ
µµÀÔµÈ ¹öÁ¯:
1.4

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.