public final class BadKind extends UserException
TypeCode
对象调用不适当的BadKind
时,抛出异常TypeCode
。
例如,调用不代表IDL联合的TypeCode
实例上的方法discriminator_type()
将导致抛出异常BadKind
。
TypeCode
Constructor and Description |
---|
BadKind()
构造一个没有原因消息的
BadKind 异常。
|
BadKind(String reason)
构造具有
BadKind 原因消息的BadKind异常。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BadKind()
BadKind
异常。
public BadKind(String reason)
BadKind
异常。
reason
- 包含原因消息的字符串
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.