|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
public class Exception
Exception
Ŭ·¡½º¿Í ±× ¼ºê Ŭ·¡½º´Â º¸Åë
ÀÇ ¾îÇø®ÄÉÀ̼ÇÀ¸·Î ijġ µÉ °¡´É¼ºÀÌ ÀÖ´Â »óŸ¦ ³ªÅ¸³»´Â Throwable
Çü½ÄÀÇ 1°³
ÀÔ´Ï´Ù.
Error
,
Á÷·ÄÈ µÈ Çü½Ä »ý¼ºÀÚ °³¿ä | |
---|---|
Exception ()
»ó¼¼ ¸Þ¼¼Áö¿¡ null À»
»ç¿ëÇØ, »õ·Î¿î ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Exception (String message)
ÁöÁ¤µÈ »ó¼¼ ¸Þ¼¼Áö¸¦ »ç¿ëÇØ, »õ·Î¿î ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Exception (String message,
Throwable cause)
ÁöÁ¤µÈ »ó¼¼ ¸Þ¼¼Áö ¹× ¿øÀÎÀ» »ç¿ëÇØ »õ·Î¿î ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Exception (Throwable cause)
(cause==null ? null : cause.toString()) ÁöÁ¤µÈ ¿øÀÎ ¹× »ó¼¼ ¸Þ¼¼Áö¸¦ »ç¿ëÇØ »õ·Î¿î ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä |
---|
Ŭ·¡½º java.lang. Throwable ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
fillInStackTrace,
getCause,
getLocalizedMessage,
getMessage,
getStackTrace,
initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public Exception()
null
À»
»ç¿ëÇØ, »õ·Î¿î ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. ¿øÀÎÀº ÃʱâȵÇÁö ¾Ê°í, ±× ÈÄ Throwable.initCause(java.lang.Throwable)
¸¦
È£ÃâÇÏ´Â °ÍÀ¸·Î Ãʱâȵ˴ϴÙ.
public Exception(String message)
Throwable.initCause(java.lang.Throwable)
¸¦
È£ÃâÇÏ´Â °ÍÀ¸·Î Ãʱâȵ˴ϴÙ.
message
- »ó¼¼ ¸Þ¼¼Áö. »ó¼¼ ¸Þ¼¼Áö´Â Throwable.getMessage()
¸Þ¼µå¿¡
ÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÈ´Ùpublic Exception(String message, Throwable cause)
cause
¿Í
°ü·ÃµÈ
»ó¼¼ ¸Þ¼¼Áö°¡ ÀÌ ¿¹¿ÜÀÇ »ó¼¼ ¸Þ¼¼Áö¿¡ ÀÚµ¿ÀûÀ¸·Î ÅëÇÕµÉ °ÍÀº ¾ø½À´Ï´Ù.
message
- »ó¼¼ ¸Þ¼¼Áö. Throwable.getMessage()
¸Þ¼µå¿¡
ÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÇ´Âcause
- ¿øÀÎ. ³ªÁß¿¡ Throwable.getCause()
¸Þ¼µå·Î ÃëµæÇϱâ À§Çؼ º¸Á¸µÈ´Ù. null °ªÀÌ Çã°¡µÇ°í ÀÖ¾î ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ºÒ¸íÇÑ °ÍÀ» ³ªÅ¸³»´Âpublic Exception(Throwable cause)
PrivilegedActionException
µî)ÀÇ ·¡ÆÛÀÎ °æ¿ì¿¡ À¯¿ëÇÕ´Ï´Ù.
cause
- ¿øÀÎ. ³ªÁß¿¡ Throwable.getCause()
¸Þ¼µå·Î ÃëµæÇϱâ À§Çؼ º¸Á¸µÈ´Ù. null °ªÀÌ Çã°¡µÇ°í ÀÖ¾î ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ºÒ¸íÇÑ °ÍÀ» ³ªÅ¸³»´Â
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.