public class EndpointException extends RuntimeException
getSerializationData()
method to see
the information on the data being sent to the client.
Refer to VaadinConnectException
in the client library for more
information about the client side of the implementation.Modifier and Type | Field and Description |
---|---|
static String |
ERROR_MESSAGE_FIELD
A message field to be used in the exception's serialization data in
getSerializationData() . |
Constructor and Description |
---|
EndpointException(String message)
Creates an exception which information is propagated to the client since,
if thrown from a Vaadin endpoint method.
|
EndpointException(String message,
Object detail)
Creates an exception which information is propagated to the client since,
if thrown from a Vaadin endpoint method.
|
EndpointException(String message,
Throwable cause)
Creates an exception which information is propagated to the client since,
if thrown from a Vaadin endpoint method.
|
EndpointException(String message,
Throwable cause,
Object detail)
Creates an exception which information is propagated to the client since,
if thrown from a Vaadin endpoint method.
|
EndpointException(Throwable cause)
Creates an exception which information is propagated to the client since,
if thrown from a Vaadin endpoint method.
|
Modifier and Type | Method and Description |
---|---|
Object |
getDetail()
Gets the detail of the exception, if provided by user,
null
otherwise. |
Map<String,Object> |
getSerializationData()
Creates a map with the serialization data to be sent to the client when
the exception thrown is processed by
FusionController . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String ERROR_MESSAGE_FIELD
getSerializationData()
.public EndpointException(String message)
message
- the message to put in the client side exception message when
an exception is thrownpublic EndpointException(Throwable cause)
cause
- the original exception that had caused the current one to be
thrownpublic EndpointException(String message, Object detail)
message
- the message to put in the client side exception message when
an * exception is throwndetail
- a detail object that will be serialized into JSON and sent to
the client, when the exception is thrownpublic EndpointException(String message, Throwable cause)
message
- the message to put in the client side exception message when
an * * exception is throwncause
- the original exception that had caused the current one to be
thrown.public EndpointException(String message, Throwable cause, Object detail)
message
- the message to put in the client side exception message when
an * * exception is throwncause
- the original exception that had caused the current one to be
throwndetail
- a detail object that will be serialized into JSON and sent to
the client, when the exception is thrownpublic Object getDetail()
null
otherwise.public Map<String,Object> getSerializationData()
FusionController
. The
following data will be sent to the client:
EndpointException
, if no original exception is givenCopyright © 2024. All rights reserved.