public class IncompatibleSchemaException extends ValidationException
Exception thrown when a schema update is not compatible with the previous schema (or schemas) or with existing datasets (if shared storage is used, for example).
Constructor and Description |
---|
IncompatibleSchemaException(String message) |
IncompatibleSchemaException(String message,
Throwable cause) |
IncompatibleSchemaException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static void |
check(boolean isValid,
String message,
Object... args)
Precondition-style validation that throws a
ValidationException . |
format
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IncompatibleSchemaException(String message)
public IncompatibleSchemaException(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–2015. All rights reserved.