|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
Error ´Â Throwable ÀÇ ¼ºê Ŭ·¡½º¿¡¼, Åë»óÀÇ ¾îÇø®ÄÉÀ̼ÇÀ̸é ijġ ÇØ¼´Â ¾ÈµÇ´Â Áß´ëÇÑ ¹®Á¦¸¦ ³ªÅ¸³À´Ï´Ù. ±×·¯ÇÑ ¿¡·¯ÀÇ ´ëºÎºÐÀº ÀÌ»óÇÑ »óÅÂÀÔ´Ï´Ù. ThreadDeath ¿¡·¯´Â ¡¸Á¤»ó¡¹ÀÎ »óÅÂÀÔ´Ï´Ù¸¸, ´ëºÎºÐÀÇ ¾îÇø®ÄÉÀ̼ǿ¡¼´Â ijġ ÇØ¼´Â ¾ÈµÇ±â ¶§¹®¿¡, ¿ª½Ã Error ÀÇ ¼ºê Ŭ·¡½ºÀÇ 1 °³ÀÔ´Ï´Ù.
¸Þ¼Òµå´Â ±× ¸Þ¼Òµå¸¦ ½ÇÇàÇÒ ¶§¿¡ ½½·Î¿ì µÉ °¡´É¼ºÀº À־ ijġ´Â µÇÁö ¾Ê´Â Error ÀÇ ¼ºê Ŭ·¡½º¸¦,throws Àý·Î ¼±¾ðÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ÀÌ·¯ÇÑ ¿¡·¯´Â Àý´ë·Î ÀϾ¼´Â ¾È µÇ´Â ÀÌ»óÇÑ »óÅÂÀ̱â (À§ÇØ)¶§¹®¿¡ÀÔ´Ï´Ù.
ThreadDeath ,
Á÷·ÄÈ µÈ Çü½Ä | »ý¼ºÀÚÀÇ °³¿ä | |
Error ()
»ó¼¼ ¸Þ¼¼Áö¿¡ null ¸¦ »ç¿ëÇØ, ½Å±Ô ¿¡·¯¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Error (String message)
ÁöÁ¤µÈ »ó¼¼ ¸Þ¼¼Áö¸¦ »ç¿ëÇØ, ½Å±Ô ¿¡·¯¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Error (String message,
Throwable cause)
ÁöÁ¤µÈ »ó¼¼ ¸Þ¼¼Áö ¹× ¿øÀÎÀ» »ç¿ëÇØ ½Å±Ô ¿¡·¯¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Error (Throwable cause)
(cause==null ? |
|
| Ŭ·¡½º 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 Error()
null ¸¦ »ç¿ëÇØ, ½Å±Ô ¿¡·¯¸¦ ±¸ÃàÇÕ´Ï´Ù. ¿øÀÎÀº ÃʱâȵÇÁö ¾Ê°í ±× ÈÄ Throwable.initCause(java.lang.Throwable) ¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î Ãʱâȵ˴ϴÙ.
public Error(String message)
Throwable.initCause(java.lang.Throwable) ¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î Ãʱâȵ˴ϴÙ.
message - »ó¼¼ ¸Þ¼¼Áö. »ó¼¼ ¸Þ¼¼Áö´Â Throwable.getMessage() ¸Þ¼Òµå¿¡ ÀÇÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÈ´Ù
public Error(String message,
Throwable cause)
cause ¿Í °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø »ó¼¼ ¸Þ¼¼Áö°¡, ÀÌ ¿¡·¯ÀÇ »ó¼¼ ¸Þ¼¼Áö¿¡ ÀÚµ¿ÀûÀ¸·Î ÅëÇÕµÉ °ÍÀº ¾ø½À´Ï´Ù.
message - »ó¼¼ ¸Þ¼¼Áö (Throwable.getMessage() ¸Þ¼Òµå¿¡ ÀÇÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÈ´Ù)cause - ¿øÀÎ (Throwable.getCause() ¸Þ¼Òµå¿¡ ÀÇÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÈ´Ù). null Ä¡°¡ Çã°¡µÈ´Ù. null Ä¡´Â ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ¹ÌÁöÀÎ °ÍÀ» ³ªÅ¸³»´Âpublic Error(Throwable cause)
cause - ¿øÀÎ (Throwable.getCause() ¸Þ¼Òµå¿¡ ÀÇÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÈ´Ù). null Ä¡°¡ Çã°¡µÈ´Ù. null Ä¡´Â ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ¹ÌÁöÀÎ °ÍÀ» ³ªÅ¸³»´Â
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.