public class NoSuchMechanismException extends RuntimeException
一个NoSuchMechanismException可以包含一个原因:另一个可抛出的,导致这NoSuchMechanismException被抛出。
XMLSignatureFactory.getInstance ,
KeyInfoFactory.getInstance ,
Serialized Form
| Constructor and Description |
|---|
NoSuchMechanismException()
构造一个新的
NoSuchMechanismException与
null作为其详细信息。
|
NoSuchMechanismException(String message)
构造一个新的
NoSuchMechanismException与指定的详细消息。
|
NoSuchMechanismException(String message, Throwable cause)
构造一个新的
NoSuchMechanismException与指定的详细信息和原因。
|
NoSuchMechanismException(Throwable cause)
构造一个新的
NoSuchMechanismException与指定的原因和详细消息
(cause==null ? null : cause.toString()) (它通常包含的类和详细消息
cause )。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
如果原因不存在或未知,则返回此
NoSuchMechanismException或
null的原因。
|
void |
printStackTrace()
打印此
NoSuchMechanismException ,其回溯和原因回溯到标准错误流。
|
void |
printStackTrace(PrintStream s)
打印此
NoSuchMechanismException ,其回溯和原因回溯到指定的打印流。
|
void |
printStackTrace(PrintWriter s)
打印
NoSuchMechanismException ,其回溯和原因回溯到指定的打印作者。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic NoSuchMechanismException()
NoSuchMechanismException与
null作为其详细信息。
public NoSuchMechanismException(String message)
NoSuchMechanismException与指定的详细信息。
message - 详细信息
public NoSuchMechanismException(String message, Throwable cause)
NoSuchMechanismException与指定的详细信息和原因。
请注意,与cause联的详细消息不会自动并入此异常的详细消息。
message - 详细信息
cause - 原因(
允许 A
null值,表示原因不存在或未知)。
public NoSuchMechanismException(Throwable cause)
NoSuchMechanismException与指定的原因和详细信息
(cause==null ? null : cause.toString()) (通常包含类和详细信息
cause )。
cause - 原因(
允许使用 A
null值,表示原因不存在或未知)。
public Throwable getCause()
NoSuchMechanismException或null的原因。
(原因是引发这个NoSuchMechanismException可抛出的)。
public void printStackTrace()
NoSuchMechanismException ,其回溯和原因回溯到标准错误流。
printStackTrace在
Throwable
public void printStackTrace(PrintStream s)
NoSuchMechanismException ,其回溯和原因回溯到指定的打印流。
printStackTrace在
Throwable
s -
PrintStream用于输出
public void printStackTrace(PrintWriter s)
NoSuchMechanismException ,其回溯和原因回溯到指定的打印作者。
printStackTrace在
Throwable
s -
PrintWriter to use for output
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.