congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SentryConfigurationException.setConfigWarnings
Code IndexAdd Tabnine to your IDE (free)

How to use
setConfigWarnings
method
in
org.apache.sentry.core.common.SentryConfigurationException

Best Java code snippets using org.apache.sentry.core.common.SentryConfigurationException.setConfigWarnings (Showing top 1 results out of 315)

origin: apache/incubator-sentry

@Override
public void validatePolicy(boolean strictValidation) throws SentryConfigurationException {
 if (!initialized) {
  throw new IllegalStateException("Backend has not been properly initialized");
 }
 List<String> localConfigErrors = Lists.newArrayList(configErrors);
 List<String> localConfigWarnings = Lists.newArrayList(configWarnings);
 if (strictValidation && !localConfigWarnings.isEmpty() || !localConfigErrors.isEmpty()) {
  localConfigErrors.add("Failed to process global policy file " + resourcePath);
  SentryConfigurationException e = new SentryConfigurationException("");
  e.setConfigErrors(localConfigErrors);
  e.setConfigWarnings(localConfigWarnings);
  throw e;
 }
}
org.apache.sentry.core.commonSentryConfigurationExceptionsetConfigWarnings

Popular methods of SentryConfigurationException

  • <init>
  • getConfigErrors
  • getConfigWarnings
  • setConfigErrors

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Table (org.hibernate.mapping)
    A relational table
  • Option (scala)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now