aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/TimeoutChildProcessException.java
blob: 1eea3c7585e65654df20dabaff25a6dfd6467b9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.vespa.hosted.node.admin.task.util.process;

import java.time.Duration;

/**
 * Exception thrown when a child process has taken too long to terminate, in case it has been
 * forcibly killed.
 *
 * @author hakonhall
 */
@SuppressWarnings("serial")
public class TimeoutChildProcessException extends ChildProcessException {
    TimeoutChildProcessException(Duration timeout, String commandLine, String possiblyHugeOutput) {
        super("timed out after " + timeout, commandLine, possiblyHugeOutput);
    }
}