public class WrongMethodTypeException extends RuntimeException
此异常也可能在两个方法处理操作时被抛出,并且系统检测到它们的类型不能正确匹配。这相当于一个类型不匹配的早期评价,在方法处理构造时间,而不是当不匹配的方法句柄被调用。
Constructor and Description |
---|
WrongMethodTypeException()
创建一个不含详细信息
WrongMethodTypeException 。
|
WrongMethodTypeException(String s)
创建一个指定详细信息的
WrongMethodTypeException 。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WrongMethodTypeException()
WrongMethodTypeException
。
public WrongMethodTypeException(String s)
WrongMethodTypeException
。
s
-详细信息。
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.