• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uber / cadence-java-client / 2490

13 Aug 2024 05:39PM CUT coverage: 61.99% (-0.03%) from 62.021%
2490

push

buildkite

web-flow
Removing fossa as it is migrated to snyk (#919)

12090 of 19503 relevant lines covered (61.99%)

0.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/uber/cadence/client/WorkflowTerminatedException.java
1
/*
2
 *  Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
 *
4
 *  Modifications copyright (C) 2017 Uber Technologies, Inc.
5
 *
6
 *  Licensed under the Apache License, Version 2.0 (the "License"). You may not
7
 *  use this file except in compliance with the License. A copy of the License is
8
 *  located at
9
 *
10
 *  http://aws.amazon.com/apache2.0
11
 *
12
 *  or in the "license" file accompanying this file. This file is distributed on
13
 *  an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
 *  express or implied. See the License for the specific language governing
15
 *  permissions and limitations under the License.
16
 */
17

18
package com.uber.cadence.client;
19

20
import com.uber.cadence.WorkflowExecution;
21
import java.util.Optional;
22

23
/**
24
 * Indicates that a workflow was forcefully terminated by an external command to Cadence service.
25
 */
26
public final class WorkflowTerminatedException extends WorkflowException {
27

28
  private final byte[] details;
29
  private final String identity;
30

31
  public WorkflowTerminatedException(
32
      WorkflowExecution execution,
33
      Optional<String> workflowType,
34
      String reason,
35
      String identity,
36
      byte[] details) {
37
    super("Terminated by " + identity + " for \"" + reason + "\"", execution, workflowType, null);
×
38
    this.identity = identity;
×
39
    this.details = details;
×
40
  }
×
41

42
  public String getIdentity() {
43
    return identity;
×
44
  }
45

46
  public byte[] getDetails() {
47
    return details;
×
48
  }
49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc