Package org.apache.parquet.cli.util
Class RecordException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.parquet.cli.util.RecordException
-
- All Implemented Interfaces:
Serializable
public class RecordException extends RuntimeException
Exception to signal that a record could not be read or written.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecordException(String message)RecordException(String message, Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheck(boolean isValid, String message, Object... args)Precondition-style validation that throws aRecordException.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
check
public static void check(boolean isValid, String message, Object... args)Precondition-style validation that throws aRecordException.- Parameters:
isValid-trueif valid,falseif an exception should be thrownmessage- A String message for the exception.args- Args to fill into the message using String.format
-
-