Interface MinecraftExceptionHandler.ComponentMessageThrowableConverter

All Known Implementing Classes:
MinecraftExceptionHandler.ComponentMessageThrowableConverterHolder
Enclosing class:
MinecraftExceptionHandler<C>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@API(status=INTERNAL) @FunctionalInterface public static interface MinecraftExceptionHandler.ComponentMessageThrowableConverter
Converts Throwables to ComponentMessageThrowables when possible.
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts a Throwable to a ComponentMessageThrowable if possible.
  • Method Details

    • maybeConvert

      Throwable maybeConvert(Throwable thr)
      Converts a Throwable to a ComponentMessageThrowable if possible.
      Parameters:
      thr - throwable
      Returns:
      possibly converted throwable