com.sshdemo.common.schedule.generate.quartz.EwcmsJobMethodInvocationFailedException.java Source code

Java tutorial

Introduction

Here is the source code for com.sshdemo.common.schedule.generate.quartz.EwcmsJobMethodInvocationFailedException.java

Source

/**
 * Copyright (c)2010-2011 Enterprise Website Content Management System(EWCMS), All rights reserved.
 * EWCMS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * http://www.ewcms.com
 */
package com.sshdemo.common.schedule.generate.quartz;

import org.springframework.core.NestedRuntimeException;
import org.springframework.util.MethodInvoker;

/**
 * 
 * @author wuzhijun
 *
 */
public class EwcmsJobMethodInvocationFailedException extends NestedRuntimeException {

    private static final long serialVersionUID = -5853922879523025668L;

    public EwcmsJobMethodInvocationFailedException(MethodInvoker methodInvoker, Throwable cause) {
        super((new StringBuilder("Invocation of method '")).append(methodInvoker.getTargetMethod())
                .append("' on target class [").append(methodInvoker.getTargetClass()).append("] failed").toString(),
                cause);
    }
}