|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.reflect.InvocationTargetException
public class InvocationTargetException
InvocationTargetException´Â È£ÃâµÇ´Â ¸Þ¼µå ¶Ç´Â »ý¼ºÀÚ°¡ Throw ÇÏ´Â ¿¹¿Ü¸¦°¨½Î´Â üũ°¡ ³¡³ ¿¹¿ÜÀÔ´Ï´Ù.
1.4 ¸±¸®½º¿¡¼´Â ÀÌ ¿¹¿Ü´Â ¹ü¿ëÀûÀÎ ¿¹¿Ü üÀÎ µµ±¸¿¡ ÀûÇÕÇϵµ·Ï °³·®µÇ°í ÀÖ½À´Ï´Ù. ±¸Ãà½Ã¿¡ Á¦°øµÇ¾îgetTargetException() ¸Þ¼µå¸¦ °³ÀÔ½ÃÄÑ ¾×¼¼½º µÇ´Â ¡¸Å¸°Ù ¿¹¿Ü¡¹´Â ÇöÀç ¡¸cause¡¹¸Þ¼µå·Î¼ ¾Ë·ÁÁ® ÀÖ½À´Ï´Ù. ¶Ç, À̰ÍÀº Àü¼úÇÑ ¡¸À¯»ê ¸Þ¼µå¡¹¶ó°í¿Í °°ÀÌ Throwable.getCause()¸¦
°³ÀÔ½ÃÄÑ ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù.
Method,
Constructor,
Á÷·ÄÈ µÈ Çü½Ä | »ý¼ºÀÚ °³¿ä | |
|---|---|
protected |
InvocationTargetException ()
Ÿ°Ù ¿¹¿Ü¿¡ nullÀ»
ÁöÁ¤ÇØ, InvocationTargetExceptionÀ»
±¸ÃàÇÕ´Ï´Ù. |
|
InvocationTargetException (Throwable target)
Ÿ°Ù ¿¹¿Ü¸¦ »ç¿ëÇØ InvocationTargetExceptionÀ» ±¸ÃàÇÕ´Ï´Ù. |
|
InvocationTargetException (Throwable target,
String s)
Ÿ°Ù ¿¹¿Ü ¹× »ó¼¼ ¸Þ¼¼Áö¸¦ »ç¿ëÇØ, InvocationTargetExceptionÀ» ±¸ÃàÇÕ´Ï´Ù. |
| ¸Þ¼µå °³¿ä | |
|---|---|
Throwable |
getCause ()
ÀÌ ¿¹¿ÜÀÇ ¿øÀÎ (Throw µÈ Ÿ°Ù ¿¹¿Ü, nullµµ °¡´É)À» ¸®ÅÏÇÕ´Ï´Ù. |
Throwable |
getTargetException ()
Throw µÈ Ÿ°Ù ¿¹¿Ü¸¦ ÃëµæÇÕ´Ï´Ù. |
| Ŭ·¡½º 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 |
| »ý¼ºÀÚ »ó¼¼ |
|---|
protected InvocationTargetException()
nullÀ»
ÁöÁ¤ÇØ, InvocationTargetExceptionÀ»
±¸ÃàÇÕ´Ï´Ù.
public InvocationTargetException(Throwable target)
target - Ÿ°Ù ¿¹¿Ü
public InvocationTargetException(Throwable target,
String s)
target - Ÿ°Ù ¿¹¿Üs - »ó¼¼ ¸Þ¼¼Áö| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public Throwable getTargetException()
ÀÌ ¸Þ¼µå´Â ¹ü¿ëÀûÀÎ ¿¹¿Ü üÀÎ ±â´É¿¡ ¼±ÇàÇÕ´Ï´Ù. ÀÌ Á¤º¸¸¦ ÃëµæÇϱâ À§Çؼ
Throwable.getCause() ¸Þ¼µå¸¦ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.
public Throwable getCause()
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 µµ ÂüÁ¶ÇϽʽÿÀ.