Class DrillExceptionUtil

java.lang.Object
org.apache.drill.common.util.DrillExceptionUtil

public class DrillExceptionUtil extends Object
Utility class which contain methods for conversion Drill ProtoBuf Error and Throwable
  • Constructor Details

    • DrillExceptionUtil

      public DrillExceptionUtil()
  • Method Details

    • getThrowable

      public static Throwable getThrowable(UserBitShared.ExceptionWrapper exceptionWrapper)
      Recreate throwable from exception protoBuf which received from remote or local node. if no match constructor found, the base Throwable (Exception or Error) is created as a substitution
      Parameters:
      exceptionWrapper - the exception protoBuf
      Returns:
      Throwable deserialized from protoBuf