|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--java.lang.reflect.UndeclaredThrowableException
È£Ãâ Çڵ鷯ÀÇ invoke
¸Þ¼Òµå°¡, ÇÁ·Ï½Ã ÀνºÅϽº·Î ºÒ·Á °¡°í È£Ãâ Çڵ鷯¿¡ µð½ºÆÌÄ¡ µÈ ¸Þ¼ÒµåÀÇ throws
Àý·Î ¼±¾ðµÈ ¾î´À ¿¹¿Ü ŸÀÔ¿¡µµ ÇÒ´çÇϰí ÇÒ ¼ö ¾ø´Â È®ÀÎÀÌ ³¡³ ¿¹¿Ü (RuntimeException
¶Ç´Â Error
¿¡ ÇÒ´çÇϰí ÇÒ ¼ö ¾ø´Â Throwable
)¸¦ ½½·Î¿ì ÇßÀ» °æ¿ì, ÇÁ·Ï½Ã ÀνºÅϽºÀÇ ¸Þ¼Òµå È£Ãâ¿¡ ÀÇÇØ ½½·Î¿ì µË´Ï´Ù.
UndeclaredThrowableException
ÀνºÅϽº´Â È£Ãâ Çڵ鷯¿¡ ÀÇÇØ ½½·Î¿ì µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³ ¿¹¿Ü¸¦ ÀúÀåÇϰí ÀÖ¾î,getUndeclaredThrowable()
¸Þ¼Òµå·Î ²¨³¾ ¼ö°¡ ÀÖ½À´Ï´Ù. UndeclaredThrowableException
´Â RuntimeException
¸¦ È®ÀåÇϱâ À§ÇØ(¶§¹®¿¡), È®ÀÎÀÌ ³¡³ ¿¹¿Ü¸¦ ·¦ ÇÏ´Â ¹ÌÈ®ÀÎ ¿¹¿Ü°¡ µË´Ï´Ù.
¸±¸®½º 1.4 ¿¡¼´Â ÀÌ ¿¹¿Ü´Â ¹ü¿ëÀÇ ¿¹¿Ü ¿¬¼â ±â±¸¿¡ ¸ÂÃß¾î °³·®µÇ°í ÀÖ½À´Ï´Ù. ¡¸È£Ãâ Çڵ鷯¿¡ ÀÇÇØ ½½·Î¿ì µÈ ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³ ¿¹¿Ü¡¹ (±¸Ãà½Ã¿¡ ½½·Î¿ì µÇ¾î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
- ½½·Î¿ì µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³ ¿¹¿Üpublic UndeclaredThrowableException(Throwable undeclaredThrowable, String s)
Throwable
¿Í »ó¼¼ ¸Þ¼¼Áö·Î UndeclaredThrowableException
¸¦ ±¸ÃàÇÕ´Ï´Ù.
undeclaredThrowable
- ½½·Î¿ì µÈ, ¼±¾ðµÇ¾î ÀÖÁö ¾ÊÀº È®ÀÎÀÌ ³¡³ ¿¹¿Üs
- »ó¼¼ ¸Þ¼¼Áö¸Þ¼ÒµåÀÇ »ó¼¼ |
public Throwable getUndeclaredThrowable()
UndeclaredThrowableException
·Î ·¦ µÈ Throwable
ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù (null µµ °¡´É).
ÀÌ ¸Þ¼Òµå´Â ¹ü¿ëÀûÀÎ ¿¹¿Ü üÀÎ ±â´É¿¡ ¼±ÇàÇÕ´Ï´Ù. ÀÌ Á¤º¸¸¦ ÃëµæÇϱâ À§Çؼ,Throwable.getCause()
¸Þ¼Òµå¸¦ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.
public Throwable getCause()
UndeclaredThrowableException
³»¿¡ ·¦ µÈ Throwable
ÀνºÅϽº,null
µµ °¡´É).
Throwable
³»ÀÇ getCause
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
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.