public class SerializedTypeViolationException extends SerializationException implements IsSerializable
AsyncCallback.onFailure(Throwable)
method when the value of an
argument to a method in an RPC message is of the incorrect type.
For example, a method may be expecting an Integer argument, while the value in the message is a HashMap. The most likely source of this message in a production system is a security attack where a man-in-the-middle has modified an RPC message by changing the value types within the message.
Note that on the client, the Throwable.getCause()
always return
null
.
Constructor and Description |
---|
SerializedTypeViolationException()
Constructor used by RPC serialization.
|
SerializedTypeViolationException(String msg)
Constructs an instance with the specified message.
|
SerializedTypeViolationException(String msg,
Throwable cause)
Constructs an instance with the specified message and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
public SerializedTypeViolationException()
public SerializedTypeViolationException(String msg)
Copyright © 2016. All rights reserved.