/*
* The contents of this file are subject to the Sapient Public License
* Version 1.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://carbon.sf.net/License.html.
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* The Original Code is The Carbon Component Framework.
*
* The Initial Developer of the Original Code is Sapient Corporation
*
* Copyright (C) 2003 Sapient Corporation. All Rights Reserved.
*/
package org.sape.carbon.services.scheduler;
import org.sape.carbon.core.exception.BaseException;
import org.sape.carbon.core.util.classify.SeverityEnum;
/**
* This exception should be thrown by the runScheduledTask method of a
* Schedulable component if the task is in an irretrievable state and should
* be canceled.
*
* @see org.sape.carbon.services.scheduler.Schedulable#runScheduledTask()
*
* <br>Copyright 2002 Sapient
* @since carbon 1.2
* @author Douglas Voet, Jan 30, 2003
* @version $Revision: 1.7 $($Author: dvoet $ / $Date: 2003/05/05 21:21:33 $)
*/
public class UnrecoverableTaskException extends BaseException {
/**
* Constructor for UnrecoverableTaskException.
*
* @param sourceClass The source class of this exception
* @param message string information relating to this exception
*/
public UnrecoverableTaskException(Class sourceClass, String message) {
super(sourceClass, message);
}
/**
* Constructor for UnrecoverableTaskException.
*
* @param sourceClass The source class of this exception
* @param message string information relating to this exception
* @param cause a throwable that can be considered the cause
* of the current exception (used in levelizing exceptions)
*/
public UnrecoverableTaskException(
Class sourceClass,
String message,
Throwable cause) {
super(sourceClass, message, cause);
}
/**
* @see org.sape.carbon.core.exception.Exceptionable#getSeverity()
*/
public SeverityEnum getSeverity() {
return SeverityEnum.INFO;
}
}
|