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 classDeprecated, for removal: This API element is subject to removal in a future version.static classException indicating a problem with the request data.static classException indicating access to the endpoint was denied as the user is not authorized.static classAllows to specify the HTTP status code and message to return as error.static classException indicating an unexpected server error occured during handling of the endpoint invocation.static classException indicating the endpoint was not found.static classException 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:
getMessagein classThrowable- Returns:
- the error message or
nullif no error message was provided
-
EndpointInvocationException.EndpointUnauthorizedExceptioninstead.