java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<LeafletMap>
org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.ErrorEvent
All Implemented Interfaces:
Serializable

@DomEvent("locationerror") public class ErrorEvent extends LeafletEvent
Represents the leaflet ErrorEvent
Since:
2020-03-11
Version:
1.0
Author:
Gabor Kokeny Email: kokeny19@gmail.com
See Also:
  • Constructor Details

    • ErrorEvent

      public ErrorEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.message") String message, @EventData("event.detail.code") int code)
      Creates a new error event.
      Parameters:
      source - the component that fired the event
      fromClient - true if the event originated from the client side
      layerId - the identifier of the layer the error is related to
      message - the error message
      code - the error code, if applicable
  • Method Details

    • getCode

      public int getCode()
      Error code (if applicable).
      Returns:
      the code
    • getMessage

      public String getMessage()
      Error message.
      Returns:
      the message
    • toString

      public String toString()
      Overrides:
      toString in class LeafletEvent