Class RpcDecodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.vaadin.flow.server.communication.rpc.RpcDecodeException
- All Implemented Interfaces:
Serializable
Thrown if RPC method argument cannot be decoded to the required type.
It may happen when a decoder supports (applicable) to the type of argument
and the required type but the argument value cannot be converted to the type
(e.g. "1.1" can't be converted to Integer
even though the
StringToNumberDecoder
is able to decode a String
to
Integer
).
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorDescriptionRpcDecodeException
(String message) Creates a new instance with the givenmessage
.RpcDecodeException
(Throwable cause) Creates a new instance with the givencause
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RpcDecodeException
Creates a new instance with the givenmessage
.- Parameters:
message
- the exception message
-
RpcDecodeException
Creates a new instance with the givencause
.- Parameters:
cause
- the cause of the failed conversion
-