Class ErrorHelper

java.lang.Object
org.apache.drill.common.exceptions.ErrorHelper

public class ErrorHelper extends Object
Utility class that handles error message generation from protobuf error objects.
  • Constructor Details

    • ErrorHelper

      public ErrorHelper()
  • Method Details

    • getWrapper

      public static UserBitShared.ExceptionWrapper getWrapper(Throwable ex)
    • sneakyThrow

      public static <E extends Throwable> void sneakyThrow(Throwable e) throws E
      Helps to hide checked exception from the compiler but then actually throw it. Is useful when implementing functional interfaces that allow checked exceptions.
      Type Parameters:
      E - exception type
      Parameters:
      e - original exception instance
      Throws:
      E - exception instance