Add messages to StreamExceptions thrown in StandardSession and StandardStream

This commit is contained in:
Thomas Becker 2012-11-16 12:50:32 +01:00
parent 6bc8bab92d
commit b76669434f
2 changed files with 4 additions and 2 deletions

View File

@ -911,7 +911,8 @@ public class StandardSession implements ISession, Parser.Listener, Callback<Stan
queue.remove(i);
if (stream != null && stream.isReset())
{
frameBytes.fail(new StreamException(stream.getId(),StreamStatus.INVALID_STREAM));
frameBytes.fail(new StreamException(stream.getId(),StreamStatus.INVALID_STREAM,
"Stream: " + stream + " is reset!"));
return;
}
break;

View File

@ -329,7 +329,8 @@ public class StandardStream implements IStream
{
if (isClosed() || isReset())
{
callback.failed(this, new StreamException(getId(), StreamStatus.STREAM_ALREADY_CLOSED));
callback.failed(this, new StreamException(getId(), StreamStatus.STREAM_ALREADY_CLOSED,
"Stream: " + this + " already closed or reset!"));
return;
}
PushSynInfo pushSynInfo = new PushSynInfo(getId(), synInfo);