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

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 µµ ÂüÁ¶ÇϽʽÿÀ.