ubic.basecode.util.CancellationException.java Source code

Java tutorial

Introduction

Here is the source code for ubic.basecode.util.CancellationException.java

Source

/*
 * The baseCode project
 * 
 * Copyright (c) 2006 University of British Columbia
 * 
 * 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 ubic.basecode.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Throw this exception when an InterruptedException or isInterrupted() is true, to notify the thread to quit.
 * 
 * @author pavlidis
 * @version $Id: CancellationException.java,v 1.2 2006/03/29 23:27:28 paul Exp $
 */
public class CancellationException extends RuntimeException {

    private static Log log = LogFactory.getLog(CancellationException.class.getName());

    /**
     * 
     */
    public CancellationException() {
        super();
    }

    /**
     * @param message
     */
    public CancellationException(String message) {
        super(message);
    }

    /**
     * @param cause
     */
    public CancellationException(Throwable cause) {
        super(cause);
    }

    /**
     * @param message
     * @param cause
     */
    public CancellationException(String message, Throwable cause) {
        super(message, cause);
        log.debug("CancellationException thrown");
    }

}