Class EndpointInvocationException.EndpointHttpException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.vaadin.hilla.EndpointInvocationException
com.vaadin.hilla.EndpointInvocationException.EndpointHttpException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EndpointInvocationException.EndpointBadRequestException, EndpointInvocationException.EndpointForbiddenException, EndpointInvocationException.EndpointInternalException, EndpointInvocationException.EndpointNotFoundException, EndpointInvocationException.EndpointUnauthorizedException
Enclosing class:
EndpointInvocationException

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:
  • Constructor Details

    • EndpointHttpException

      public EndpointHttpException(String message)
  • 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