- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.xnio.http.UpgradeFailedException
-
- All Implemented Interfaces:
java.io.Serializable
public class UpgradeFailedException extends java.io.IOException
Exception that is thrown when a valid HTTP response is received that is not an upgrade or redirect response.- Author:
- Stuart Douglas
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpgradeFailedException()
Constructs a newUpgradeFailedException
instance.UpgradeFailedException(java.lang.String msg)
Constructs a newUpgradeFailedException
instance with an initial message.UpgradeFailedException(java.lang.String msg, java.lang.Throwable cause)
Constructs a newUpgradeFailedException
instance with an initial message and cause.UpgradeFailedException(java.lang.Throwable cause)
Constructs a newUpgradeFailedException
instance with an initial cause.
-
-
-
Constructor Detail
-
UpgradeFailedException
public UpgradeFailedException()
Constructs a newUpgradeFailedException
instance. The message is left blank (null
), and no cause is specified.
-
UpgradeFailedException
public UpgradeFailedException(java.lang.String msg)
Constructs a newUpgradeFailedException
instance with an initial message. No cause is specified.- Parameters:
msg
- the message
-
UpgradeFailedException
public UpgradeFailedException(java.lang.Throwable cause)
Constructs a newUpgradeFailedException
instance with an initial cause. If a non-null
cause is specified, its message is used to initialize the message of thisUpgradeFailedException
; otherwise the message is left blank (null
).- Parameters:
cause
- the cause
-
UpgradeFailedException
public UpgradeFailedException(java.lang.String msg, java.lang.Throwable cause)
Constructs a newUpgradeFailedException
instance with an initial message and cause.- Parameters:
msg
- the messagecause
- the cause
-
-