public final class COMM_FAILURE extends SystemException
它包含一个次要代码,它提供了有关导致异常的更多详细信息和完成状态。 它也可以包含描述异常的字符串。
请参阅第meaning of minor codes节以查看此例外的次要代码。
completed, minor| Constructor and Description | 
|---|
| COMM_FAILURE()
              构造一个 
              COMM_FAILURE异常,默认次要代码为0,完成状态为COMPLETED_NO。 | 
| COMM_FAILURE(int minor, CompletionStatus completed)
              构造具有 
              COMM_FAILURE的次要代码和完成状态的COMM_FAILURE异常。 | 
| COMM_FAILURE(String s)
              构造一个 
              COMM_FAILURE异常,指定的详细消息,次要代码为0,完成状态为COMPLETED_NO。 | 
| COMM_FAILURE(String s, int minor, CompletionStatus completed)
              构造一个 
              COMM_FAILURE异常使用指定详细消息,次要代码和完成状态。 | 
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic COMM_FAILURE()
COMM_FAILURE异常,默认次要代码为0,完成状态为COMPLETED_NO。 
          public COMM_FAILURE(String s)
COMM_FAILURE异常,指定的详细消息,次要代码为0,完成状态为COMPLETED_NO。 
          s -所述 
            String含有描述该异常的详细消息 
           public COMM_FAILURE(int minor,
                    CompletionStatus completed) 
          COMM_FAILURE的次要代码和完成状态的COMM_FAILURE异常。 
          minor - 次要代码 
           completed -完成状态,它必须是一个 
            COMPLETED_YES , 
            COMPLETED_NO ,或 
            COMPLETED_MAYBE 。 
           public COMM_FAILURE(String s, int minor, CompletionStatus completed)
COMM_FAILURE的详细消息,次要代码和完成状态的COMM_FAILURE异常。 
           详细消息是描述此特定异常的字符串。 
          s - 包含详细消息的字符串 
           minor - 次要代码 
           completed -完成状态,它必须是一个 
            COMPLETED_YES , 
            COMPLETED_NO ,或 
            COMPLETED_MAYBE 。 
            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.