Tabnine Logo
ValidationException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.netflix.config.validation.ValidationException
constructor

Best Java code snippets using com.netflix.config.validation.ValidationException.<init> (Showing top 4 results out of 315)

origin: spinnaker/kayenta

@RequestMapping(value = "/instance/enabled", consumes = "application/json", method = RequestMethod.POST)
void setInstanceEnabled(@RequestBody Map<String, Boolean> enabledWrapper) {
 Boolean enabled = enabledWrapper.get("enabled");
 if (enabled == null) {
  throw new ValidationException("The field 'enabled' must be set.", null);
 }
 setInstanceEnabled(enabled);
}
origin: com.netflix.archaius/archaius-core

private void validate(String newValue) {
  for (PropertyChangeValidator v: validators) {
    try {
      v.validate(newValue);
    } catch (ValidationException e) {
      throw e;
    } catch (Throwable e) {
      throw new ValidationException("Unexpected exception during validation", e);
    }
  }
}

origin: com.netflix.kayenta/kayenta-orca

@RequestMapping(value = "/instance/enabled", consumes = "application/json", method = RequestMethod.POST)
void setInstanceEnabled(@RequestBody Map<String, Boolean> enabledWrapper) {
 Boolean enabled = enabledWrapper.get("enabled");
 if (enabled == null) {
  throw new ValidationException("The field 'enabled' must be set.", null);
 }
 setInstanceEnabled(enabled);
}
origin: com.netflix.archaius/archaius-legacy

private void validate(String newValue) {
  for (PropertyChangeValidator v: validators) {
    try {
      v.validate(newValue);
    } catch (ValidationException e) {
      throw e;
    } catch (Throwable e) {
      throw new ValidationException("Unexpected exception during validation", e);
    }
  }
}

com.netflix.config.validationValidationException<init>

Popular methods of ValidationException

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • onCreateOptionsMenu (Activity)
    • compareTo (BigDecimal)
    • findViewById (Activity)
    • Container (java.awt)
      A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
    • MessageFormat (java.text)
      Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
    • Queue (java.util)
      A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
    • JButton (javax.swing)
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Top Vim plugins
    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