org.kitesdk.data
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kitesdk.data.DatasetException
org.kitesdk.data.ValidationException
- All Implemented Interfaces:
- Serializable
public class ValidationException
- extends DatasetException
Exception thrown to indicate that there was a problem
parsing or validating a schema, partition strategy, or column mapping.
- Since:
- 0.14.0
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ValidationException
public ValidationException(String msg)
ValidationException
public ValidationException(Throwable cause)
ValidationException
public ValidationException(String msg,
Throwable cause)
check
public static void check(boolean isValid,
String message,
Object... args)
- Precondition-style validation that throws a
ValidationException
.
- Parameters:
isValid
- true
if valid, false
if an exception should be
thrownmessage
- A String message for the exception.
Copyright © 2013–2014. All rights reserved.