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 { try {
underlayingChannel = SctpChannel.open(); underlayingChannel = SctpChannel.open();
} catch (IOException e) { } 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; boolean success = false;
@ -56,7 +56,7 @@ final class SctpClientChannel extends SctpChannelImpl {
underlayingChannel.close(); underlayingChannel.close();
} catch (IOException e) { } catch (IOException e) {
logger.warn( logger.warn(
"Failed to close a partially initialized socket.", "Failed to close a partially initialized sctp channel.",
e); e);
} }
} }

View File

@ -43,7 +43,7 @@ final class SctpSendBufferPool {
return acquire((SctpPayload) message); return acquire((SctpPayload) message);
} else { } else {
throw new IllegalArgumentException( 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(); serverChannel = com.sun.nio.sctp.SctpServerChannel.open();
} catch (IOException e) { } catch (IOException e) {
throw new ChannelException( throw new ChannelException(
"Failed to open a server socket.", e); "Failed to open a server sctp channel.", e);
} }
try { try {
@ -72,7 +72,7 @@ class SctpServerChannelImpl extends AbstractServerChannel
serverChannel.close(); serverChannel.close();
} catch (IOException e2) { } catch (IOException e2) {
logger.warn( 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); throw new ChannelException("Failed to enter non-blocking mode.", e);