corrected sctp channel exception messages

This commit is contained in:
Jestan Nirojan 2012-02-11 17:27:17 +05:30
parent 71fd0231da
commit a29d887c34
3 changed files with 5 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -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");
}
}

View File

@ -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);