All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.snowflake.client.jdbc.SnowflakeSimulatedUploadFailure Maven / Gradle / Ivy

/*
 * Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
 */

package net.snowflake.client.jdbc;

import net.snowflake.client.log.SFLogger;
import net.snowflake.client.log.SFLoggerFactory;

/** Snowflake Loader exception for Test. This should only be valid in tests. */
public class SnowflakeSimulatedUploadFailure extends RuntimeException {
  private static final long serialVersionUID = 1L;

  static final SFLogger logger = SFLoggerFactory.getLogger(SnowflakeSimulatedUploadFailure.class);

  public SnowflakeSimulatedUploadFailure() {
    super();
    logger.error("This constructor should not be used.", false);
  }

  public SnowflakeSimulatedUploadFailure(String filename) {
    super("Simulated upload failure for " + filename);

    logger.debug("{}. This should show up only in tests.", this.getMessage());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy