static void ThrowTooLongFrameException(HeaderParser parser, int length) { throw GetTooLongFrameException(); TooLongFrameException GetTooLongFrameException() { return(new TooLongFrameException(parser.NewExceptionMessage(length))); } }