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

How to use
getExceptionDuringIsValidCallException
method
in
org.hibernate.validator.internal.util.logging.Log

Best Java code snippets using org.hibernate.validator.internal.util.logging.Log.getExceptionDuringIsValidCallException (Showing top 2 results out of 315)

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private <T, V> Set<ConstraintViolation<T>> validateSingleConstraint(ValidationContext<T> executionContext,
    ValueContext<?, ?> valueContext,
    ConstraintValidatorContextImpl constraintValidatorContext,
    ConstraintValidator<A, V> validator) {
  boolean isValid;
  try {
    @SuppressWarnings("unchecked")
    V validatedValue = (V) valueContext.getCurrentValidatedValue();
    isValid = validator.isValid( validatedValue, constraintValidatorContext );
  }
  catch (RuntimeException e) {
    throw log.getExceptionDuringIsValidCallException( e );
  }
  if ( !isValid ) {
    //We do not add these violations yet, since we don't know how they are
    //going to influence the final boolean evaluation
    return executionContext.createConstraintViolations(
        valueContext, constraintValidatorContext
    );
  }
  return Collections.emptySet();
}
origin: org.hibernate.validator/hibernate-validator

protected final <T, V> Set<ConstraintViolation<T>> validateSingleConstraint(ValidationContext<T> executionContext,
    ValueContext<?, ?> valueContext,
    ConstraintValidatorContextImpl constraintValidatorContext,
    ConstraintValidator<A, V> validator) {
  boolean isValid;
  try {
    @SuppressWarnings("unchecked")
    V validatedValue = (V) valueContext.getCurrentValidatedValue();
    isValid = validator.isValid( validatedValue, constraintValidatorContext );
  }
  catch (RuntimeException e) {
    if ( e instanceof ConstraintDeclarationException ) {
      throw e;
    }
    throw LOG.getExceptionDuringIsValidCallException( e );
  }
  if ( !isValid ) {
    //We do not add these violations yet, since we don't know how they are
    //going to influence the final boolean evaluation
    return executionContext.createConstraintViolations(
        valueContext, constraintValidatorContext
    );
  }
  return Collections.emptySet();
}
org.hibernate.validator.internal.util.loggingLoggetExceptionDuringIsValidCallException

Popular methods of Log

  • getInvalidRegularExpressionException
  • getInvalidLengthForFractionPartException
  • getInvalidLengthForIntegerPartException
  • getLengthCannotBeNegativeException
  • getMaxCannotBeNegativeException
  • getMinCannotBeNegativeException
  • debug
  • debugf
  • errorInExpressionLanguage
  • evaluatingExpressionLanguageExpressionCausedException
  • getAnnotationDoesNotContainAParameterException
  • getAtLeastOneCustomMessageMustBeCreatedException
  • getAnnotationDoesNotContainAParameterException,
  • getAtLeastOneCustomMessageMustBeCreatedException,
  • getAtLeastOneGroupHasToBeSpecifiedException,
  • getAttemptToSpecifyAnArrayWhereSingleValueIsExpectedException,
  • getBeanClassHasAlreadyBeConfiguredViaProgrammaticApiException,
  • getBeanClassMustBePartOfRedefinedDefaultGroupSequenceException,
  • getBeanDoesNotContainConstructorException,
  • getBeanDoesNotContainMethodException,
  • getBeanDoesNotContainTheFieldException,
  • getBeanDoesNotContainThePropertyException

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top PhpStorm 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