org.kitesdk.data
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.kitesdk.data.DatasetException
                  extended by 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

Constructor Summary
ValidationException(String msg)
           
ValidationException(String msg, Throwable cause)
           
ValidationException(Throwable cause)
           
 
Method Summary
static void check(boolean isValid, String message, Object... args)
          Precondition-style validation that throws a ValidationException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(String msg)

ValidationException

public ValidationException(Throwable cause)

ValidationException

public ValidationException(String msg,
                           Throwable cause)
Method Detail

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 thrown
message - A String message for the exception.


Copyright © 2013–2014. All rights reserved.