corrected sctp channel exception messages
This commit is contained in:
parent
71fd0231da
commit
a29d887c34
@ -41,7 +41,7 @@ final class SctpClientChannel extends SctpChannelImpl {
|
||||
try {
|
||||
underlayingChannel = SctpChannel.open();
|
||||
} catch (IOException e) {
|
||||
throw new ChannelException("Failed to open a socket.", e);
|
||||
throw new ChannelException("Failed to open a sctp channel.", e);
|
||||
}
|
||||
|
||||
boolean success = false;
|
||||
@ -56,7 +56,7 @@ final class SctpClientChannel extends SctpChannelImpl {
|
||||
underlayingChannel.close();
|
||||
} catch (IOException e) {
|
||||
logger.warn(
|
||||
"Failed to close a partially initialized socket.",
|
||||
"Failed to close a partially initialized sctp channel.",
|
||||
e);
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ final class SctpSendBufferPool {
|
||||
return acquire((SctpPayload) message);
|
||||
} else {
|
||||
throw new IllegalArgumentException(
|
||||
"unsupported message type: " + message.getClass());
|
||||
"unsupported message type: " + message.getClass() + " required io.netty.channel.sctp.SctpPayload instance");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ class SctpServerChannelImpl extends AbstractServerChannel
|
||||
serverChannel = com.sun.nio.sctp.SctpServerChannel.open();
|
||||
} catch (IOException e) {
|
||||
throw new ChannelException(
|
||||
"Failed to open a server socket.", e);
|
||||
"Failed to open a server sctp channel.", e);
|
||||
}
|
||||
|
||||
try {
|
||||
@ -72,7 +72,7 @@ class SctpServerChannelImpl extends AbstractServerChannel
|
||||
serverChannel.close();
|
||||
} catch (IOException e2) {
|
||||
logger.warn(
|
||||
"Failed to close a partially initialized socket.", e2);
|
||||
"Failed to close a partially initialized sctp channel.", e2);
|
||||
}
|
||||
|
||||
throw new ChannelException("Failed to enter non-blocking mode.", e);
|
||||
|
Loading…
Reference in New Issue
Block a user