Package hudson.remoting
Class ChannelClosedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.jenkinsci.remoting.ChannelStateException
-
- hudson.remoting.ChannelClosedException
-
- All Implemented Interfaces:
Serializable
public class ChannelClosedException extends ChannelStateException
Indicates that the channel is already closed or being closed.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChannelClosedException()
ChannelClosedException(Channel channel, String message, Throwable cause)
Constructor.ChannelClosedException(Channel channel, Throwable cause)
Constructor.ChannelClosedException(String message, Throwable cause)
Deprecated.ChannelClosedException(Throwable cause)
Deprecated.
-
Method Summary
-
Methods inherited from class org.jenkinsci.remoting.ChannelStateException
getChannel, getChannelName, getChannelRef, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ChannelClosedException
@Deprecated public ChannelClosedException()
Deprecated.UseChannelClosedException(Throwable)
orChannelClosedException(java.lang.String, java.lang.Throwable)
. This constructor will not include cause of the termination.
-
ChannelClosedException
@Deprecated public ChannelClosedException(Throwable cause)
Deprecated.
-
ChannelClosedException
public ChannelClosedException(@CheckForNull Channel channel, @CheckForNull Throwable cause)
Constructor.- Parameters:
channel
- Reference to the channel.null
if the channel is unknown.cause
- Cause- Since:
- 3.15
-
ChannelClosedException
@Deprecated public ChannelClosedException(@NonNull String message, @CheckForNull Throwable cause)
Deprecated.Constructor.- Parameters:
message
- Messagecause
- Cause of the channel close/termination. May benull
if it cannot be determined when the exception is constructed.- Since:
- 3.11
-
ChannelClosedException
public ChannelClosedException(@CheckForNull Channel channel, @NonNull String message, @CheckForNull Throwable cause)
Constructor.- Parameters:
channel
- Reference to the channel.null
if the channel is unknown.message
- Messagecause
- Cause of the channel close/termination. May benull
if it cannot be determined when the exception is constructed.- Since:
- 3.15
-
-