JavaTM 2 Platform
Standard Ed. 5.0

java.lang.reflect
Ŭ·¡½º InvocationTargetException

java.lang.Object 
  »óÀ§¸¦ È®Àå java.lang.Throwable 
      »óÀ§¸¦ È®Àå java.lang.Exception 
          »óÀ§¸¦ È®Àå java.lang.reflect.InvocationTargetException
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable

public class InvocationTargetException
extends Exception

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
 

»ý¼ºÀÚ »ó¼¼

InvocationTargetException

protected InvocationTargetException()
Ÿ°Ù ¿¹¿Ü¿¡ nullÀ» ÁöÁ¤ÇØ, InvocationTargetExceptionÀ» ±¸ÃàÇÕ´Ï´Ù.


InvocationTargetException

public InvocationTargetException(Throwable  target)
Ÿ°Ù ¿¹¿Ü¸¦ »ç¿ëÇØ InvocationTargetExceptionÀ» ±¸ÃàÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
target - Ÿ°Ù ¿¹¿Ü

InvocationTargetException

public InvocationTargetException(Throwable  target,
                                 String  s)
Ÿ°Ù ¿¹¿Ü ¹× »ó¼¼ ¸Þ¼¼Áö¸¦ »ç¿ëÇØ, InvocationTargetExceptionÀ» ±¸ÃàÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
target - Ÿ°Ù ¿¹¿Ü
s - »ó¼¼ ¸Þ¼¼Áö
¸Þ¼­µåÀÇ »ó¼¼

getTargetException

public Throwable  getTargetException()
Throw µÈ Ÿ°Ù ¿¹¿Ü¸¦ ÃëµæÇÕ´Ï´Ù.

ÀÌ ¸Þ¼­µå´Â ¹ü¿ëÀûÀÎ ¿¹¿Ü üÀÎ ±â´É¿¡ ¼±ÇàÇÕ´Ï´Ù. ÀÌ Á¤º¸¸¦ ÃëµæÇϱâ À§Çؼ­ Throwable.getCause() ¸Þ¼­µå¸¦ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

¹Ýȯ°ª:
Throw µÈ Ÿ°Ù ¿¹¿Ü (ÀÌ ¿¹¿ÜÀÇ ¿øÀÎ)

getCause

public Throwable  getCause()
ÀÌ ¿¹¿ÜÀÇ ¿øÀÎ (Throw µÈ Ÿ°Ù ¿¹¿Ü, 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 µµ ÂüÁ¶ÇϽʽÿÀ.