org.force66.insanity.RetryException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Insanity Show documentation
Show all versions of Insanity Show documentation
Generic implementation of the 'retry' pattern. The retry pattern is best used from a batch or asynchronous remote tasks (e.g. web service calls) that a user/caller isn't waiting for. It's purpose is to compensate for temporary outages automatically, without the need for human intervention.
The newest version!
/*
* This software is licensed under the Apache License, Version 2.0
* (the "License") agreement; 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 org.force66.insanity;
import org.apache.commons.lang3.exception.ContextedRuntimeException;
public class RetryException extends ContextedRuntimeException {
private static final long serialVersionUID = 257351987428454396L;
public RetryException(String message) {
super(message);
}
public RetryException(Throwable cause) {
super(cause);
}
public RetryException(String message, Throwable cause) {
super(message, cause);
}
}