Class ErrorHelper
java.lang.Object
org.apache.drill.common.exceptions.ErrorHelper
Utility class that handles error message generation from protobuf error objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetWrapper
(Throwable ex) static <E extends Throwable>
voidHelps to hide checked exception from the compiler but then actually throw it.
-
Constructor Details
-
ErrorHelper
public ErrorHelper()
-
-
Method Details
-
getWrapper
-
sneakyThrow
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
-