All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.ltsopensource.core.exception.JobReceiveException Maven / Gradle / Ivy

package com.github.ltsopensource.core.exception;

import com.github.ltsopensource.core.domain.Job;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Robert HG ([email protected]) on 8/1/14.
 * 客户端提交的任务 接受 异常
 */
public class JobReceiveException extends Exception {

	private static final long serialVersionUID = 6091344409709022270L;
	/**
     * 出错的job列表
     */
    private List jobs;

    public List getJobs() {
        return jobs;
    }

    public void setJobs(List jobs) {
        this.jobs = jobs;
    }

    public void addJob(Job job){
        if(jobs == null){
            jobs = new ArrayList();
        }

        jobs.add(job);
    }

    public JobReceiveException() {
    }

    public JobReceiveException(String message) {
        super(message);
    }

    public JobReceiveException(String message, Throwable cause) {
        super(message, cause);
    }

    public JobReceiveException(Throwable cause) {
        super(cause);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy