Detect a complete protocol message. Support parsing exceptions.