Package org.springframework.oxm

Examples of org.springframework.oxm.ValidationFailureException


   * (<code>false</code>)
   * @return the corresponding <code>XmlMappingException</code>
   */
  protected XmlMappingException convertCastorException(XMLException ex, boolean marshalling) {
    if (ex instanceof ValidationException) {
      return new ValidationFailureException("Castor validation exception", ex);
    }
    else if (ex instanceof MarshalException) {
      if (marshalling) {
        return new MarshallingFailureException("Castor marshalling exception", ex);
      }
View Full Code Here


   * or unmarshalling (<code>false</code>)
   * @return the corresponding <code>XmlMappingException</code>
   */
  public XmlMappingException convertJibxException(JiBXException ex, boolean marshalling) {
    if (ex instanceof ValidationException) {
      return new ValidationFailureException("JiBX validation exception", ex);
    }
    else {
      if (marshalling) {
        return new MarshallingFailureException("JiBX marshalling exception", ex);
      }
View Full Code Here

   * @param ex <code>JAXBException</code> that occured
   * @return the corresponding <code>XmlMappingException</code>
   */
  protected XmlMappingException convertJaxbException(JAXBException ex) {
    if (ex instanceof ValidationException) {
      return new ValidationFailureException("JAXB validation exception", ex);
    }
    else if (ex instanceof MarshalException) {
      return new MarshallingFailureException("JAXB marshalling exception", ex);
    }
    else if (ex instanceof UnmarshalException) {
View Full Code Here

          XmlError xmlError = (XmlError) anErrorsList;
          if (xmlError instanceof XmlValidationError) {
            builder.append(xmlError.toString());
          }
        }
        throw new ValidationFailureException("XMLBeans validation failure",
            new XmlException(builder.toString(), null, errorsList));
      }
    }
  }
View Full Code Here

   * or unmarshalling (<code>false</code>)
   * @return the corresponding <code>XmlMappingException</code>
   */
  protected XmlMappingException convertXmlBeansException(Exception ex, boolean marshalling) {
    if (ex instanceof XMLStreamValidationException) {
      return new ValidationFailureException("XmlBeans validation exception", ex);
    }
    else if (ex instanceof XmlException || ex instanceof SAXException) {
      if (marshalling) {
        return new MarshallingFailureException("XMLBeans marshalling exception",  ex);
      }
View Full Code Here

            }
            sb.append(error.toString());
            first = false;
          }
        }
        throw new ValidationFailureException("XMLBeans validation failure",
            new XmlException(sb.toString(), null, errorsList));
      }
    }
  }
View Full Code Here

   * or unmarshalling ({@code false})
   * @return the corresponding {@code XmlMappingException}
   */
  protected XmlMappingException convertXmlBeansException(Exception ex, boolean marshalling) {
    if (ex instanceof XMLStreamValidationException) {
      return new ValidationFailureException("XMLBeans validation exception", ex);
    }
    else if (ex instanceof XmlException || ex instanceof SAXException) {
      if (marshalling) {
        return new MarshallingFailureException("XMLBeans marshalling exception",  ex);
      }
View Full Code Here

   * @param ex {@code JAXBException} that occured
   * @return the corresponding {@code XmlMappingException}
   */
  protected XmlMappingException convertJaxbException(JAXBException ex) {
    if (ex instanceof ValidationException) {
      return new ValidationFailureException("JAXB validation exception", ex);
    }
    else if (ex instanceof MarshalException) {
      return new MarshallingFailureException("JAXB marshalling exception", ex);
    }
    else if (ex instanceof UnmarshalException) {
View Full Code Here

   * or unmarshalling ({@code false})
   * @return the corresponding {@code XmlMappingException}
   */
  protected XmlMappingException convertCastorException(XMLException ex, boolean marshalling) {
    if (ex instanceof ValidationException) {
      return new ValidationFailureException("Castor validation exception", ex);
    }
    else if (ex instanceof MarshalException) {
      if (marshalling) {
        return new MarshallingFailureException("Castor marshalling exception", ex);
      }
View Full Code Here

   * or unmarshalling ({@code false})
   * @return the corresponding {@code XmlMappingException}
   */
  public XmlMappingException convertJibxException(JiBXException ex, boolean marshalling) {
    if (ex instanceof ValidationException) {
      return new ValidationFailureException("JiBX validation exception", ex);
    }
    else {
      if (marshalling) {
        return new MarshallingFailureException("JiBX marshalling exception", ex);
      }
View Full Code Here

TOP

Related Classes of org.springframework.oxm.ValidationFailureException

Copyright © 2018 www.massapicom. 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.