JavaTM 2 Platform
Standard Ed. 5.0

java.lang
ÀÎÅÍÆäÀ̽º Thread.UncaughtExceptionHandler

±âÁ¸ÀÇ ±¸Çö Ŭ·¡½ºÀÇ À϶÷:
ThreadGroup
Æ÷ÇԵǾî Àִ Ŭ·¡½º:
Thread

public static interface Thread.UncaughtExceptionHandler

ijġ µÇÁö ¾Ê´Â ¿¹¿Ü¿¡ ÇØ,Thread °¡ µ¹¿¬ Á¾·áÇßÀ» ¶§¿¡ ºÒ·Á °¡´Â °Í Çڵ鷯ÀÇ ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù.

ijġ µÇÁö ¾Ê´Â ¿¹¿Ü¿¡ ÇØ thread°¡ Á¾·áÇÏ·Á°í Çϸé, Java °¡»ó ¸Ó½ÅÀº thread¿Í ¿¹¿Ü¸¦ Àμö·Î¼­ °Ç³×ÁÖ¾î,Thread.getUncaughtExceptionHandler() ¸¦ »ç¿ëÇØ threadÀÇ UncaughtExceptionHandler¸¦ thread¿¡ ¹®ÀÇÇØ, Çڵ鷯ÀÇ uncaughtException ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù. thread°¡ ¸í½ÃÀûÀ¸·Î ¼³Á¤µÈ UncaughtExceptionHandler¸¦ °¡Áö°í ÀÖÁö ¾Ê¾Ò´ø °æ¿ì, threadÀÇ ThreadGroup ¿ÀºêÁ§Æ®°¡ UncaughtExceptionHandler ·Î¼­ ±â´ÉÇÕ´Ï´Ù. ThreadGroup ¿ÀºêÁ§Æ®°¡ ¿¹¿Ü¸¦ Ãë±ÞÇϴ Ư¼öÇÑ ¿ä°ÇÀ» °®ÃßÁö ¾ÊÀº °æ¿ì, È£ÃâÀ»µðÆúÆ®ÀÇ Ä³Ä¡ µÇÁö ¾Ê´Â ¿¹¿ÜÀÇ Çڵ鷯¿¡ Àü¼Û ÇÕ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.5
°ü·Ã Ç׸ñ:
Thread.setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler), Thread.setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler), ThreadGroup.uncaughtException(java.lang.Thread, java.lang.Throwable)

¸Þ¼­µå °³¿ä
 void uncaughtException (Thread  t, Throwable  e)
          ÁöÁ¤µÈ ijġ µÇÁö ¾Ê´Â ¿¹¿Ü¿¡ ÇØ, ÁöÁ¤µÈ thread°¡ Á¾·áÇßÀ» ¶§¿¡ ºÒ·Á °¡´Â ¸Þ¼­µåÀÔ´Ï´Ù.
 

¸Þ¼­µåÀÇ »ó¼¼

uncaughtException

void uncaughtException(Thread  t,
                       Throwable  e)
ÁöÁ¤µÈ ijġ µÇÁö ¾Ê´Â ¿¹¿Ü¿¡ ÇØ, ÁöÁ¤µÈ thread°¡ Á¾·áÇßÀ» ¶§¿¡ ºÒ·Á °¡´Â ¸Þ¼­µåÀÔ´Ï´Ù.

ÀÌ ¸Þ¼­µå¿¡ ÇØ Throw µÇ´Â ¿¹¿Ü´Â Java °¡»ó ¸Ó½Å¿¡ ÇØ ¹«½ÃµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
t - thread
e - ¿¹¿Ü

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.