Class ErrorEvent

  • All Implemented Interfaces:

    
    public class ErrorEvent<E>
    
                        

    Page-level error event.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final E error
      public final String message
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      E getError() Returns the error.
      String getMessage() Returns the error message.
      static <E> ErrorEvent<E> obtain(E error, String message) Creates an error event.
      static <E> ErrorEvent<E> obtain(E error) Creates an error event.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getError

         E getError()

        Returns the error.

        Returns:

        the error

      • getMessage

         String getMessage()

        Returns the error message.

        Returns:

        the error message

      • obtain

         static <E> ErrorEvent<E> obtain(E error, String message)

        Creates an error event.

        Parameters:
        error - the error
        message - the error message
        Returns:

        the error event

      • obtain

         static <E> ErrorEvent<E> obtain(E error)

        Creates an error event.

        Parameters:
        error - the error
        Returns:

        the error event