Class ErrorEvent

  • All Implemented Interfaces:
    Event
    Direct Known Subclasses:
    WarningEvent

    public class ErrorEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onError() callback.
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorEvent​(java.lang.String message, java.lang.Exception exception)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception getException()  
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorEvent

        public ErrorEvent​(java.lang.String message,
                          @Nullable
                          java.lang.Exception exception)
    • Method Detail

      • getMessage

        @NonNull
        public java.lang.String getMessage()
        Returns:
        The error message that has been detected.
      • getException

        @Nullable
        public java.lang.Exception getException()
        Returns:
        The Exception thrown along with this error.