Class RpcDecodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.vaadin.flow.server.communication.rpc.RpcDecodeException
-
- All Implemented Interfaces:
Serializable
public class RpcDecodeException extends Exception
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 theStringToNumberDecoder
is able to decode aString
toInteger
).For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RpcDecodeException(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 Detail
-
RpcDecodeException
public RpcDecodeException(String message)
Creates a new instance with the givenmessage
.- Parameters:
message
- the exception message
-
RpcDecodeException
public RpcDecodeException(Throwable cause)
Creates a new instance with the givencause
.- Parameters:
cause
- the cause of the failed conversion
-
-