public class GeneralSecurityException extends 异常
GeneralSecurityException类是一种通用的安全性异常类,它为所有与安全相关的异常类提供类型安全性。
| Constructor and Description |
|---|
GeneralSecurityException()
构造一个没有详细消息的GeneralSecurityException。
|
GeneralSecurityException(String msg)
构造具有指定详细消息的GeneralSecurityException。
|
GeneralSecurityException(String message, Throwable cause)
创建
GeneralSecurityException带指定详细消息和原因。
|
GeneralSecurityException(Throwable cause)
创建
GeneralSecurityException与指定的原因和详细消息
(cause==null ? null : cause.toString()) (它通常包含的类和详细消息
cause )。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic GeneralSecurityException()
public GeneralSecurityException(String msg)
msg - 详细信息。
public GeneralSecurityException(String message, Throwable cause)
GeneralSecurityException带指定详细消息和原因。
message - 详细信息(保存以供
Throwable.getMessage()方法稍后检索)。
cause - 原因(由Throwable.getCause()方法保存供以后检索)。
(A null值,表示原因不存在或未知。)
public GeneralSecurityException(Throwable cause)
GeneralSecurityException与指定的原因和详细消息
(cause==null ? null : cause.toString()) (它通常包含的类和详细消息
cause )。
cause - 原因(由Throwable.getCause()方法保存供以后检索)。
(A null值被允许,并且表明原因不存在或未知。)
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.