create a QuicError type

This commit is contained in:
Marten Seemann
2016-04-19 15:54:18 +07:00
parent 600d3805a2
commit 90cb792477
3 changed files with 34 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import "github.com/lucas-clemente/quic-go/protocol"
const (
QUIC_NO_ERROR = protocol.ErrorCode(0)
QUIC_INTERNAL_ERROR = protocol.ErrorCode(1)
QUIC_STREAM_DATA_AFTER_TERMINATION = protocol.ErrorCode(2)
// QUIC_SERVER_ERROR_PROCESSING_STREAM= There was some server error which halted stream processing.
// QUIC_MULTIPLE_TERMINATION_OFFSETS= The sender received two mismatching fin or reset offsets for a single stream.