Interface ComponentMessageThrowable


  • public interface ComponentMessageThrowable
    An extension interface for Throwables to provide a Component-based message.
    Since:
    4.0.0
    • Method Detail

      • getMessage

        @Nullable
        static @Nullable Component getMessage​(@Nullable
                                              @Nullable Throwable throwable)
        Gets the Component-based message from a Throwable, if available.
        Parameters:
        throwable - the throwable
        Returns:
        the message
        Since:
        4.0.0
      • componentMessage

        @Nullable
        @Nullable Component componentMessage()
        Gets the message.
        Returns:
        the message
        Since:
        4.0.0