Class ErrorEvent

  • All Implemented Interfaces:

    
    public class ErrorEvent<E>
    
                        

    页面级别错误事件

    Author:

    rongcloud

    • 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() 获取错误类型
      String getMessage() 获取错误信息
      static <E> ErrorEvent<E> obtain(E error, String message) 创建错误事件
      static <E> ErrorEvent<E> obtain(E error) 创建错误事件
      • 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:

        错误类型

      • getMessage

         String getMessage()

        获取错误信息

        Returns:

        错误信息

      • obtain

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

        创建错误事件

        Parameters:
        error - 错误类型
        message - 错误信息
        Returns:

        错误事件

      • obtain

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

        创建错误事件

        Parameters:
        error - 错误类型
        Returns:

        错误事件