@Test(expected = DataValidationFailedException.class) public void dataValidationFailedExceptionTest() throws Exception { final TestClass testClass = new TestClass(); final DataValidationFailedException dataValidationFailedException = new DataValidationFailedException(TestClass.class, testClass, "test"); assertEquals(testClass, dataValidationFailedException.getPath()); assertEquals(TestClass.class, dataValidationFailedException.getPathType()); throw dataValidationFailedException; }
public <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path, final String message, final Throwable cause) { super(message, cause, RpcResultBuilder.newError(ErrorType.APPLICATION, "invalid-value", message, null, path != null ? path.toString() : null, cause)); this.pathType = requireNonNull(pathType, "path type must not be null"); this.path = requireNonNull(path, "path must not be null."); }
DataValidationFailedException extends TransactionCommitFailedException { public <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path, final String message, final Throwable cause) { super(message, cause, RpcResultBuilder.newError(ErrorType.APPLICATION, "invalid-value", message, null, path != null ? path.toString() : null, cause)); this.pathType = requireNonNull(pathType, "path type must not be null"); this.path = requireNonNull(path, "path must not be null."); } }
DataValidationFailedException extends TransactionCommitFailedException { public <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path, final String message, final Throwable cause) { super(message, cause, RpcResultBuilder.newError(ErrorType.APPLICATION, "invalid-value", message, null, path != null ? path.toString() : null, cause)); this.pathType = requireNonNull(pathType, "path type must not be null"); this.path = requireNonNull(path, "path must not be null."); } <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path,
            final String message, final Throwable cause); <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path,
            final String message); }
DataValidationFailedException extends TransactionCommitFailedException { public <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path, final String message, final Throwable cause) { super(message, cause, RpcResultBuilder.newError(ErrorType.APPLICATION, "invalid-value", message, null, path != null ? path.toString() : null, cause)); this.pathType = requireNonNull(pathType, "path type must not be null"); this.path = requireNonNull(path, "path must not be null."); } <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path,
            final String message, final Throwable cause); <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path,
            final String message); final Path<?> getPath(); final Class<? extends Path<?>> getPathType(); }
DataValidationFailedException extends TransactionCommitFailedException { public <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path, final String message, final Throwable cause) { super(message, cause, RpcResultBuilder.newError(ErrorType.APPLICATION, "invalid-value", message, null, path != null ? path.toString() : null, cause)); this.pathType = requireNonNull(pathType, "path type must not be null"); this.path = requireNonNull(path, "path must not be null."); } <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path,
            final String message, final Throwable cause); <P extends Path<P>> DataValidationFailedException(final Class<P> pathType, final P path,
            final String message); final Path<?> getPath(); final Class<? extends Path<?>> getPathType();  }