/*
 * Copyright 2006-2010 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.consol.citrus.samples.common.exceptions;

import org.springframework.integration.core.Message;
import org.springframework.integration.message.MessageHandlingException;

/**
 * @author Christoph Deppisch
 */
public class XmlSchemaValidationException extends MessageHandlingException {

    private static final long serialVersionUID = 1L;
    
    /**
     * @param failedMessage
     */
    public XmlSchemaValidationException(Message<?> failedMessage, Throwable cause) {
        super(failedMessage, cause);
    }
}

@@ -668,16 +668,73 @@
 tions;%0A%0A
+import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A
 import o
@@ -778,16 +778,16 @@
 essage;%0A
-
 import o
@@ -1034,16 +1034,150 @@
     /**%0A
+     * Logger%0A     */%0A    private static final Logger log = LoggerFactory.getLogger(XmlSchemaValidationException.class);%0A    %0A    /**%0A
      * @
@@ -1289,16 +1289,16 @@
 ause) %7B%0A
-
         
@@ -1316,16 +1316,71 @@
 dMessage
+);%0A        %0A        log.error(%22Schema validation error%22
 , cause)

Print XML valdation error cause for information purpose