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

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

Best Java code snippets using com.netflix.config.validation.ValidationException (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

Most used methods

  • <init>

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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