Tabnine Logo
Log.getAtLeastOneCustomMessageMustBeCreatedException
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.hibernate.validator/hibernate-validator

public final List<ConstraintViolationCreationContext> getConstraintViolationCreationContexts() {
  if ( defaultDisabled ) {
    if ( constraintViolationCreationContexts == null || constraintViolationCreationContexts.size() == 0 ) {
      throw LOG.getAtLeastOneCustomMessageMustBeCreatedException();
    }
    return CollectionHelper.toImmutableList( constraintViolationCreationContexts );
  }
  if ( constraintViolationCreationContexts == null || constraintViolationCreationContexts.size() == 0 ) {
    return Collections.singletonList( getDefaultConstraintViolationCreationContext() );
  }
  List<ConstraintViolationCreationContext> returnedConstraintViolationCreationContexts =
      new ArrayList<>( constraintViolationCreationContexts.size() + 1 );
  returnedConstraintViolationCreationContexts.addAll( constraintViolationCreationContexts );
  returnedConstraintViolationCreationContexts.add( getDefaultConstraintViolationCreationContext() );
  return CollectionHelper.toImmutableList( returnedConstraintViolationCreationContexts );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

public final List<ConstraintViolationCreationContext> getConstraintViolationCreationContexts() {
  if ( defaultDisabled && constraintViolationCreationContexts.size() == 0 ) {
    throw log.getAtLeastOneCustomMessageMustBeCreatedException();
  }
  List<ConstraintViolationCreationContext> returnedConstraintViolationCreationContexts = new ArrayList<ConstraintViolationCreationContext>(
      constraintViolationCreationContexts
  );
  if ( !defaultDisabled ) {
    returnedConstraintViolationCreationContexts.add(
        new ConstraintViolationCreationContext(
            getDefaultConstraintMessageTemplate(),
            basePath,
            messageParameters != null ? newHashMap( messageParameters ) : Collections.<String, Object>emptyMap(),
            expressionVariables != null ? newHashMap( expressionVariables ) : Collections.<String, Object>emptyMap(),
            dynamicPayload
        )
    );
  }
  return returnedConstraintViolationCreationContexts;
}
org.hibernate.validator.internal.util.loggingLoggetAtLeastOneCustomMessageMustBeCreatedException

Popular methods of Log

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

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • 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
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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