|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.reflect.UndeclaredThrowableException
public class UndeclaredThrowableException
È£Ãâ Çڵ鷯ÀÇ invoke
¸Þ¼µå°¡, ÇÁ·Ï½Ã ÀνºÅϽº·Î ºÒ·Á °¡°í È£Ãâ Çڵ鷯¿¡ µð½ºÆÐÄ¡ µÈ ¸Þ¼µåÀÇ throws
Àý·Î ¼±¾ðµÈ ¾î´À ¿¹¿Ü ŸÀÔ¿¡µµ ÇÒ´çÇϰí ÇÒ ¼ö ¾ø´Â È®ÀÎÀÌ ³¡³ ¿¹¿Ü (RuntimeException
¶Ç´Â Error
¿¡ ÇÒ´çÇϰí ÇÒ ¼ö ¾ø´Â Throwable
)¸¦ Throw ÇßÀ» °æ¿ì, ÇÁ·Ï½Ã ÀνºÅϽºÀÇ ¸Þ¼µå È£Ãâ¿¡
ÇØ Throw µË´Ï´Ù.
UndeclaredThrowableException
ÀνºÅϽº´Â
È£Ãâ Çڵ鷯¿¡
ÇØ Throw µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³ ¿¹¿Ü¸¦ Æ÷ÇÔÇϰí ÀÖ¾î,getUndeclaredThrowable()
¸Þ¼µå·Î ²¨³¾ ¼ö°¡ ÀÖ½À´Ï´Ù. UndeclaredThrowableException
´Â
RuntimeException
¸¦
È®ÀåÇϱâ À§ÇØ, È®ÀÎÀÌ ³¡³ ¿¹¿Ü¸¦°¨½Î´Â ¹ÌÈ®ÀÎ ¿¹¿Ü°¡ µË´Ï´Ù.
¸±¸®½º 1.4 ¿¡¼´Â
ÀÌ ¿¹¿Ü´Â ¹ü¿ëÀÇ ¿¹¿Ü ¿¬¼â µµ±¸
¿¡ ¸ÂÃß¾î °³·®µÇ°í ÀÖ½À´Ï´Ù. ¡¸È£Ãâ Çڵ鷯¿¡
ÇØ Throw µÈ ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³ ¿¹¿Ü¡¹ (±¸Ãà½Ã¿¡ Throw µÇ¾îgetUndeclaredThrowable()
¸Þ¼µå¸¦ °³ÀÔ½ÃÄÑ ¾×¼¼½º °¡´É)´Â
cause ¸Þ¼µå·Î ºÒ¸®°Ô µÇ¾î, Àü¼úÀÇ ¡¸À¯»ê ¸Þ¼µå¡¹¿¡ °¡¼¼ÇØ Throwable.getCause()
¸Þ¼µå¸¦ °³ÀÔ½ÃÄÑ ¾×¼¼½º °¡´ÉÇÕ´Ï´Ù.
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 |
»ý¼ºÀÚ »ó¼¼ |
---|
public UndeclaredThrowableException(Throwable undeclaredThrowable)
Throwable
·Î UndeclaredThrowableException
¸¦
±¸ÃàÇÕ´Ï´Ù.
undeclaredThrowable
- Throw µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³ ¿¹¿Üpublic UndeclaredThrowableException(Throwable undeclaredThrowable, String s)
Throwable
¿Í »ó¼¼ ¸Þ¼¼Áö·Î UndeclaredThrowableException
¸¦
±¸ÃàÇÕ´Ï´Ù.
undeclaredThrowable
- Throw µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³ ¿¹¿Üs
- »ó¼¼ ¸Þ¼¼Áö¸Þ¼µåÀÇ »ó¼¼ |
---|
public Throwable getUndeclaredThrowable()
UndeclaredThrowableException
·Î ·¦ µÈ Throwable
ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù (null µµ °¡´É).
ÀÌ ¸Þ¼µå´Â ¹ü¿ëÀûÀÎ ¿¹¿Ü üÀÎ ±â´É¿¡ ¼±ÇàÇÕ´Ï´Ù. ÀÌ Á¤º¸¸¦ ÃëµæÇϱâ À§Çؼ,Throwable.getCause()
¸Þ¼µå¸¦ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.
public Throwable getCause()
UndeclaredThrowableException
³»¿¡ ·¦ µÈ Throwable
ÀνºÅϽº,null µµ °¡´É).
Throwable
³»ÀÇ getCause
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.