jdk/src/jdk.jdi/share/classes/com/sun/jdi/connect/TransportTimeoutException.java
changeset 45564 0149773a140c
parent 34894 3248b89d1921
equal deleted inserted replaced
45563:ece4ae6beba3 45564:0149773a140c
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package com.sun.jdi.connect;
    26 package com.sun.jdi.connect;
    27 
    27 
       
    28 import com.sun.jdi.connect.spi.TransportService;
       
    29 
    28 /**
    30 /**
    29  * This exception may be thrown as a result of a timeout
    31  * This exception may be thrown as a result of a timeout
    30  * when attaching to a target VM, or waiting to accept a
    32  * when attaching to a target VM, or waiting to accept a
    31  * connection from a target VM.
    33  * connection from a target VM.
    32  *
    34  *
    37  * when waiting to accept a connection from a target VM,
    39  * when waiting to accept a connection from a target VM,
    38  * using {@link ListeningConnector#accept accept} this
    40  * using {@link ListeningConnector#accept accept} this
    39  * exception may be thrown if the connector supports a
    41  * exception may be thrown if the connector supports a
    40  * timeout connector argument when accepting.
    42  * timeout connector argument when accepting.
    41  *
    43  *
    42  * <p> In addition, for developers creating {@link
    44  * <p> In addition, for developers creating {@link TransportService
    43  * com.sun.jdi.connect.spi.TransportService TransportService}
    45  * TransportService} implementations this exception is thrown when
    44  * implementations this exception is thrown when
    46  * {@link TransportService#attach attach} times out when establishing a
    45  * {@link com.sun.jdi.connect.spi.TransportService#attach attach}
    47  * connection to a target VM, or {@link TransportService#accept accept}
    46  * times out when establishing a connection to a target VM,
    48  * times out while waiting for a target VM to connect. </p>
    47  * or {@link com.sun.jdi.connect.spi.TransportService#accept
       
    48  * accept} times out while waiting for a target VM to connect. </p>
       
    49  *
    49  *
    50  * @see AttachingConnector#attach
    50  * @see AttachingConnector#attach
    51  * @see ListeningConnector#accept
    51  * @see ListeningConnector#accept
    52  * @see com.sun.jdi.connect.spi.TransportService#attach
    52  * @see TransportService#attach
    53  * @see com.sun.jdi.connect.spi.TransportService#accept
    53  * @see TransportService#accept
    54  *
    54  *
    55  * @since 1.5
    55  * @since 1.5
    56  */
    56  */
    57 public class TransportTimeoutException extends java.io.IOException {
    57 public class TransportTimeoutException extends java.io.IOException {
       
    58 
    58     private static final long serialVersionUID = 4107035242623365074L;
    59     private static final long serialVersionUID = 4107035242623365074L;
       
    60 
    59     /**
    61     /**
    60      * Constructs a {@code TransportTimeoutException} with no detail
    62      * Constructs a {@code TransportTimeoutException} with no detail
    61      * message.
    63      * message.
    62      */
    64      */
    63     public TransportTimeoutException() {
    65     public TransportTimeoutException() {
    64     }
    66     }
    65 
       
    66 
    67 
    67     /**
    68     /**
    68      * Constructs a {@code TransportTimeoutException} with the
    69      * Constructs a {@code TransportTimeoutException} with the
    69      * specified detail message.
    70      * specified detail message.
    70      *
    71      *
    71      * @param message the detail message pertaining to this exception.
    72      * @param message the detail message pertaining to this exception.
    72      */
    73      */
    73     public TransportTimeoutException(String message) {
    74     public TransportTimeoutException(String message) {
    74         super(message);
    75         super(message);
    75     }
    76     }
    76 
       
    77 }
    77 }