public final class TRANSIENT extends SystemException
它包含一个次要代码,它提供了有关导致异常的更多详细信息和完成状态。 它也可以包含描述异常的字符串。
completed, minor| Constructor and Description |
|---|
TRANSIENT()
构造一个
TRANSIENT异常,默认次要代码为0,完成状态为CompletionStatus.COMPLETED_NO和一个空描述。
|
TRANSIENT(int minor, CompletionStatus completed)
构造具有
TRANSIENT的次要代码和完成状态的TRANSIENT异常。
|
TRANSIENT(String s)
构造一个
TRANSIENT异常,指定的描述消息,次要代码为0,完成状态为COMPLETED_NO。
|
TRANSIENT(String s, int minor, CompletionStatus completed)
构造一个
TRANSIENT异常使用指定描述消息,次要代码和完成状态。
|
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic TRANSIENT()
TRANSIENT异常,默认次要代码为0,完成状态为CompletionStatus.COMPLETED_NO,以及一个空说明。
public TRANSIENT(String s)
TRANSIENT异常,指定的描述消息,次要代码为0,完成状态为COMPLETED_NO。
s - 包含详细消息的字符串
public TRANSIENT(int minor,
CompletionStatus completed)
TRANSIENT的次要代码和完成状态的TRANSIENT异常。
minor - 次要代码
completed - 完成状态
public TRANSIENT(String s, int minor, CompletionStatus completed)
TRANSIENT的描述消息,次要代码和完成状态的TRANSIENT异常。
s - 包含描述消息的字符串
minor - 次要代码
completed - 完成状态
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.