Serializablepublic class UnexpectedException extends RemoteException
UnexpectedException is thrown if the client of a remote method call receives, as a result of the call, a checked exception that is not among the checked exception types declared in the throws clause of the method in the remote interface.detail
| Constructor | Description | 
|---|---|
| UnexpectedException | Constructs an  UnexpectedExceptionwith the specified detail message. | 
| UnexpectedException | Constructs a  UnexpectedExceptionwith the specified detail message and nested exception. | 
getCause, getMessage
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnexpectedException(String s)
UnexpectedException with the specified detail message.s - the detail messagepublic UnexpectedException(String s, Exception ex)
UnexpectedException with the specified detail message and nested exception.s - the detail messageex - the nested exception
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.rmi/java/rmi/UnexpectedException.html