public class ValidationException extends DatasetException
Exception thrown to indicate that there was a problem parsing or validating a schema, partition strategy, or column mapping.
Constructor and Description |
---|
ValidationException(String msg) |
ValidationException(String msg,
Throwable cause) |
ValidationException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static void |
check(boolean isValid,
String message,
Object... args)
Precondition-style validation that throws a
ValidationException . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValidationException(String msg)
public ValidationException(Throwable cause)
public static void check(boolean isValid, String message, Object... args)
ValidationException
.isValid
- true
if valid, false
if an exception should be
thrownmessage
- A String message for the exception.Copyright © 2013–2014. All rights reserved.