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

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

¸±¸®½º 1.4 ¿¡¼­´Â ÀÌ ¿¹¿Ü´Â ¹ü¿ëÀÇ ¿¹¿Ü ¿¬¼â µµ±¸ ¿¡ ¸ÂÃß¾î °³·®µÇ°í ÀÖ½À´Ï´Ù. ¡¸È£Ãâ Çڵ鷯¿¡ ÇØ Throw µÈ ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³­ ¿¹¿Ü¡¹ (±¸Ãà½Ã¿¡ Throw µÇ¾î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 - 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 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.