|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
public static interface Thread.UncaughtExceptionHandler
ijġ µÇÁö ¾Ê´Â ¿¹¿Ü¿¡ÀÇÇØ Thread°¡ °©ÀÚ±â Á¾·áÇßÀ» ¶§¿¡ È£ÃâµÇ´Â °Í Çڵ鷯ÀÇ ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù.
ijġ µÇÁö ¾Ê´Â ¿¹¿Ü¿¡ ÀÇÇØ thread°¡ Á¾·áÇÏ·Á°í Çϸé, Java °¡»ó ¸Ó½ÅÀº thread¿Í ¿¹¿Ü¸¦ Àμö·Î¼ °Ç³×ÁÖ¾î, Thread.getUncaughtExceptionHandler()
¸¦
»ç¿ëÇØ threadÀÇ UncaughtExceptionHandler¸¦ thread¿¡ ¹®ÀÇÇØ, Çڵ鷯ÀÇ uncaughtException ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. thread°¡ ¸í½ÃÀûÀ¸·Î ¼³Á¤µÈ UncaughtExceptionHandler¸¦ °¡Áö°í ÀÖÁö ¾Ê¾Ò´ø °æ¿ì, threadÀÇ ThreadGroup °´Ã¼°¡ UncaughtExceptionHandler·Î
¼ ±â´ÉÇÕ´Ï´Ù. ThreadGroup °´Ã¼°¡ ¿¹¿Ü¸¦ Ãë±ÞÇϴ Ư¼öÇÑ ¿ä°ÇÀ» °®ÃßÁö ¾ÊÀº °æ¿ì, È£ÃâÀ»µðÆúÆ®ÀÇ Ä³Ä¡ µÇÁö ¾Ê´Â ¿¹¿ÜÀÇ Çڵ鷯¿¡ Àü¼Û ÇÕ´Ï´Ù.
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°¡ Á¾·áÇßÀ» ¶§¿¡ È£ÃâµÇ´Â ¸Þ¼µåÀÔ´Ï´Ù. |
¸Þ¼µåÀÇ »ó¼¼ |
---|
void uncaughtException(Thread t, Throwable e)
ÀÌ ¸Þ¼µå¿¡ ÀÇÇØ ¹ß»ýµÇ´Â ¿¹¿Ü´Â Java °¡»ó ¸Ó½Å¿¡ ÀÇÇØ ¹«½ÃµË´Ï´Ù.
t
- threade
- ¿¹¿Ü
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.