Package com.vaadin.hilla
Class EndpointInvocationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.vaadin.hilla.EndpointInvocationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EndpointInvocationException.EndpointAccessDeniedException
,EndpointInvocationException.EndpointHttpException
Exception thrown by EndpointInvoker when invocation fails.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version.static class
Exception indicating a problem with the request data.static class
Exception indicating access to the endpoint was denied as the user is not authorized.static class
Allows to specify the HTTP status code and message to return as error.static class
Exception indicating an unexpected server error occured during handling of the endpoint invocation.static class
Exception indicating the endpoint was not found.static class
Exception indicating access to the endpoint was denied as the user is not authenticated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the additional message that is passed to the client side.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EndpointInvocationException
Creates a new instance..- Parameters:
errorMessage
- an additional message passed to the client side
-
-
Method Details
-
getMessage
Returns the additional message that is passed to the client side.- Overrides:
getMessage
in classThrowable
- Returns:
- the error message or
null
if no error message was provided
-
EndpointInvocationException.EndpointUnauthorizedException
instead.