public class KeySelectorException extends 异常
KeySelector
扔。
一个KeySelectorException
可以包含另一个原因:错误导致KeySelectorException
被扔。
Constructor and Description |
---|
KeySelectorException()
构建与新
KeySelectorException
null 的详细信息。
|
KeySelectorException(String message)
构建指定详细信息的一个新的
KeySelectorException 。
|
KeySelectorException(String message, Throwable cause)
构建指定详细信息和产生新的
KeySelectorException 。
|
KeySelectorException(Throwable cause)
构建与指定的原因和
(cause==null ? null : cause.toString()) 详细信息的新
KeySelectorException (通常包含
cause 类和详细信息)。
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
返回该
KeySelectorException 或
null 原因如果原因是不存在的或未知的。
|
void |
printStackTrace()
这
KeySelectorException 版画,其回溯和原因的回溯到标准错误流。
|
void |
printStackTrace(PrintStream s)
这
KeySelectorException 版画,其回溯和原因的回溯到指定的打印流。
|
void |
printStackTrace(PrintWriter s)
这
KeySelectorException 版画,其回溯和原因的回溯到指定打印的作家。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public KeySelectorException()
KeySelectorException
null
的详细信息。
public KeySelectorException(String message)
KeySelectorException
。
message
-详细信息
public KeySelectorException(String message, Throwable cause)
KeySelectorException
。
值得注意的是,与cause
的详细信息不自动纳入该异常的详细信息。
message
-详细信息
cause
的原因(一
null值是允许的,并指出原因是不存在的或未知的。)
public KeySelectorException(Throwable cause)
(cause==null ? null : cause.toString())
详细信息的新
KeySelectorException
(通常包含
cause
类和详细信息)。
cause
的原因(一
null值是允许的,并指出原因是不存在的或未知的。)
public Throwable getCause()
KeySelectorException
或
null
原因如果原因是不存在的或未知的。(原因是造成这
KeySelectorException
被扔,扔)
public void printStackTrace()
KeySelectorException
版画,其回溯和原因的回溯到标准错误流。
printStackTrace
方法重写,继承类
Throwable
public void printStackTrace(PrintStream s)
KeySelectorException
版画,其回溯和原因的回溯到指定的打印流。
printStackTrace
方法重写,继承类
Throwable
s
-
PrintStream
用于输出
public void printStackTrace(PrintWriter s)
KeySelectorException
版画,其回溯和原因的回溯到指定打印的作家。
printStackTrace
方法重写,继承类
Throwable
s
-
PrintWriter
用于输出
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.