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

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

Best Java code snippets using org.apache.sentry.core.common.SentryConfigurationException.setConfigErrors (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.commonSentryConfigurationExceptionsetConfigErrors

Popular methods of SentryConfigurationException

  • <init>
  • getConfigErrors
  • getConfigWarnings
  • setConfigWarnings

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Path (java.nio.file)
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • JTextField (javax.swing)
  • From CI to AI: The AI layer in your organization
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