com.vaadin.flow.router.

Class InternalServerError

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.router.InternalServerError

All Implemented Interfaces:

AttachNotifier, DetachNotifier, HasElement, HasStyle, HasErrorParameter<Exception>, Serializable

@Tag("div") @DefaultErrorHandler public class InternalServerError extends Component implements HasErrorParameter<Exception>

This is a basic default error view shown on exceptions during navigation.

Since:

1.0

See Also:

  • Constructor Details

    • InternalServerError

      public InternalServerError()
  • Method Details

    • setErrorParameter

      public int setErrorParameter(BeforeEnterEvent event, ErrorParameter<Exception> parameter)

      Description copied from interface: HasErrorParameter

      Callback executed before rendering the exception view.

      Note! returned int should be a valid HttpStatusCode code

      Specified by:

      setErrorParameter in interface HasErrorParameter<Exception>

      Parameters:

      event - the before navigation event for this request

      parameter - error parameter containing custom exception and caught exception

      Returns:

      a valid HttpStatusCode code

    • hasLogBinding

      protected boolean hasLogBinding()

      Returns true if there is a logging binding available for SLF4J.

      Returns:

      true if there is a SLF4J logging binding