com.vaadin.hilla.
Package com.vaadin.hilla
Class EndpointInvocationException.EndpointHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.vaadin.hilla.EndpointInvocationException
com.vaadin.hilla.EndpointInvocationException.EndpointHttpException
All Implemented Interfaces:
Direct Known Subclasses:
EndpointInvocationException.EndpointBadRequestException
, EndpointInvocationException.EndpointForbiddenException
, EndpointInvocationException.EndpointInternalException
, EndpointInvocationException.EndpointNotFoundException
, EndpointInvocationException.EndpointUnauthorizedException
Enclosing class:
public abstract static class EndpointInvocationException.EndpointHttpException
extends EndpointInvocationException
Allows to specify the HTTP status code and message to return as error. While most common specialized exceptions are already provided, other can be created by extending this class.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.hilla.EndpointInvocationException
EndpointInvocationException.EndpointAccessDeniedException, EndpointInvocationException.EndpointBadRequestException, EndpointInvocationException.EndpointForbiddenException, EndpointInvocationException.EndpointHttpException, EndpointInvocationException.EndpointInternalException, EndpointInvocationException.EndpointNotFoundException, EndpointInvocationException.EndpointUnauthorizedException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.springframework.http.HttpStatus
Returns the HTTP status.
final int
Returns the HTTP status code.
Methods inherited from class com.vaadin.hilla.EndpointInvocationException
getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EndpointHttpException
-
-
Method Details
-
getHttpStatus
protected abstract org.springframework.http.HttpStatus getHttpStatus()Returns the HTTP status. Only 4xx and 5xx statuses are allowed.
Returns:
the HTTP status
-
getHttpStatusCode
public final int getHttpStatusCode()Returns the HTTP status code.
Returns:
the HTTP status code
-