|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException
RuntimeException
´Â Java °¡»ó ¸Ó½ÅÀÇ Åë»óÀÇ Ã³¸®·Î ½½·Î¿ì ÇÒ ¼ö°¡ ÀÖ´Â °¢Á¾ÀÇ ¿¹¿ÜÀÇ ½´ÆÛ Ŭ·¡½ºÀÔ´Ï´Ù.
¸Þ¼ÒµåÀÇ ½ÇÇàÁß¿¡ ½½·Î¿ì µÇÁö¸¸ ijġ µÇÁö ¾Ê´Â RuntimeException
ÀÇ ¼ºê Ŭ·¡½º¿¡ ´ëÇØ¼´Â ¸Þ¼ÒµåÀÇ throws
Àý·Î ±×°ÍµéÀ» ¼±¾ðÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù.
»ý¼ºÀÚÀÇ °³¿ä | |
RuntimeException ()
»ó¼¼ ¸Þ¼¼Áö¿¡ null ¸¦ »ç¿ëÇØ, »õ·Î¿î ½ÇÇà½Ã ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
RuntimeException (String message)
ÁöÁ¤µÈ »ó¼¼ ¸Þ¼¼Áö¸¦ »ç¿ëÇØ, »õ·Î¿î ½ÇÇà½Ã ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
RuntimeException (String message,
Throwable cause)
ÁöÁ¤µÈ »ó¼¼ ¸Þ¼¼Áö ¹× ¿øÀÎÀ» »ç¿ëÇØ »õ·Î¿î ½ÇÇà½Ã ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
RuntimeException (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 RuntimeException()
null
¸¦ »ç¿ëÇØ, »õ·Î¿î ½ÇÇà½Ã ¿¹¿Ü¸¦ ±¸ÃàÇÕ´Ï´Ù. ¿øÀÎÀº ÃʱâȵÇÁö ¾Ê°í ±× ÈÄ Throwable.initCause(java.lang.Throwable)
¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î Ãʱâȵ˴ϴÙ.
public RuntimeException(String message)
Throwable.initCause(java.lang.Throwable)
¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î Ãʱâȵ˴ϴÙ.
message
- »ó¼¼ ¸Þ¼¼Áö. »ó¼¼ ¸Þ¼¼Áö´Â Throwable.getMessage()
¸Þ¼Òµå¿¡ ÀÇÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÈ´Ùpublic RuntimeException(String message, Throwable cause)
cause
¿Í °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø »ó¼¼ ¸Þ¼¼Áö°¡, ÀÌ ½ÇÇà½Ã ¿¹¿ÜÀÇ »ó¼¼ ¸Þ¼¼Áö¿¡ ÀÚµ¿ÀûÀ¸·Î ÅëÇÕµÉ °ÍÀº ¾ø½À´Ï´Ù.
message
- »ó¼¼ ¸Þ¼¼Áö (Throwable.getMessage()
¸Þ¼Òµå¿¡ ÀÇÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÈ´Ù)cause
- ¿øÀÎ (Throwable.getCause()
¸Þ¼Òµå¿¡ ÀÇÇÑ Ãëµæ¿ëÀ¸·Î º¸Á¸µÈ´Ù). null Ä¡°¡ Çã°¡µÈ´Ù. null Ä¡´Â ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ¹ÌÁöÀÎ °ÍÀ» ³ªÅ¸³»´Âpublic RuntimeException(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.