aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/ListenFailedException.java
blob: 0295d15d00fd094c199a5ed4632b10464cff0db6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;


/**
 * Checked exception thrown when listening fails.
 * @see Supervisor#listen
 **/
public class ListenFailedException extends Exception {

    private static final long serialVersionUID = 1L;

    /**
     * Create a ListenFailedException with the given message.
     *
     * @param msg the exception message
     **/
    ListenFailedException(String msg) {
        super(msg);
    }

    /**
     * Create a ListenFailedException with the given message and cause.
     *
     * @param msg the exception message
     * @param cause what caused this exception
     **/
    ListenFailedException(String msg, Throwable cause) {
        super(msg, cause);
    }
}