Interface ComponentMessageThrowable


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

    • 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
    • getOrConvertMessage

      @Nullable static @Nullable Component getOrConvertMessage(@Nullable @Nullable Throwable throwable)
      Gets the Component-based message from a Throwable, or converts Throwable.getMessage().
      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