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

com.microsoft.durabletask.TaskCanceledException Maven / Gradle / Ivy

Go to download

This package contains classes and interfaces for building Durable Task orchestrations in Java.

There is a newer version: 1.5.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.durabletask;

// TODO: This should inherit from Exception, not TaskFailedException
/**
 * Represents a task cancellation, either because of a timeout or because of an explicit cancellation operation.
 */
public final class TaskCanceledException extends TaskFailedException {
    // Only intended to be created within this package
    TaskCanceledException(String message, String taskName, int taskId) {
        super(message, taskName, taskId, new FailureDetails(TaskCanceledException.class.getName(), message, "", true));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy