Examples of ValidationException


Examples of com.amazonaws.services.config.model.ValidationException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        ValidationException e = (ValidationException)super.unmarshall(json);
        e.setErrorCode("ValidationException");

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.elastictranscoder.model.ValidationException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ValidationException"))
            return null;

        ValidationException e = (ValidationException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.opsworks.model.ValidationException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ValidationException"))
            return null;

        ValidationException e = (ValidationException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.arcbees.gwtpwebsite.server.exception.ValidationException

        Set<ConstraintViolation<T>> constraintViolations =
                validator.validate(object);

        if (!constraintViolations.isEmpty()) {
            throw new ValidationException();
        }
    }
View Full Code Here

Examples of com.azaptree.services.commons.validation.ValidationException

    }

    for (final TypeReferenceKey<?> key : keys.get()) {
      if (key.isRequired()) {
        if (!ctx.containsKey(key)) {
          throw new ValidationException(String.format("%s  : TypeReferenceKey is required: %s", command.getName(), key));
        }
      }
    }
  }
View Full Code Here

Examples of com.betfair.cougar.codegen.ValidationException

                return null;
            }
            return attribute;

        } catch (final Exception e) {
            throw new ValidationException(name + " - Failed to extract " + attributeName + " from node", node, e);
        }
    }
View Full Code Here

Examples of com.bitsofproof.supernode.common.ValidationException

    {
      seed = Arrays.copyOfRange (raw, 9, 64 + 9);
    }
    else
    {
      throw new ValidationException ("Not an encoded HD root");
    }
    ExtendedKey key = ExtendedKey.create (seed);
    if ( !Arrays.equals (Arrays.copyOf (Hash.hash (key.getMaster ().getPrivate ()), 4), Arrays.copyOfRange (raw, 5, 9)) )
    {
      throw new ValidationException ("HD root checksum error");
    }
    return key;
  }
View Full Code Here

Examples of com.brienwheeler.lib.util.ValidationException

      if (matcher.matches())
        return true;
    }
 
    if (throwOnInvalid)
      throw new ValidationException("invalid email address format: " + address);
    return false;
  }
View Full Code Here

Examples of com.consol.citrus.exceptions.ValidationException

            log.info("SOAP fault as expected: " + soapFaultException.getFaultCode() + ": " + soapFaultException.getFaultStringOrReason());
            log.info("SOAP fault validation successful");
           
            return;
        } catch (RuntimeException e) {
            throw new ValidationException("SOAP fault validation failed for asserted exception type - expected: '" +
                    SoapFaultClientException.class + "' but was: '" + e.getClass().getName() + "'", e);
        } catch (Exception e) {
            throw new ValidationException("SOAP fault validation failed for asserted exception type - expected: '" +
                    SoapFaultClientException.class + "' but was: '" + e.getClass().getName() + "'", e);
        }
       
        throw new ValidationException("SOAP fault validation failed! Missing asserted SOAP fault exception");
    }
View Full Code Here

Examples of com.dodo.blog.exception.ValidationException

    public static <T> void validate( T object, Class... groups ) throws ValidationException
    {
        Set<ConstraintViolation<T>> constraintViolations = ValidationFactory.SINGLE_INSTANCE.getValidator().validate( object, groups );
        if ( !constraintViolations.isEmpty() )
        {
            throw new ValidationException( constraintViolations );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.