public XHtmlException(XHtmlErrorCodes errorCode, XHtmlErrorLocations errorLocation, string errorParameter) { ErrorCode = errorCode; ErrorLocation = errorLocation; ErrorParameter = errorParameter; }
internal void SendError(XHtmlErrorCodes errorCode, XHtmlErrorLocations errorLocation, string errorParameter) { var errorBuffer = new DVBuffer(); errorBuffer.Put(ProprietesWpf.CLIENTLEGER_DEBUT); errorBuffer.Put(ProprietesWpf.ERREUR_XWPF); errorBuffer.Put((ushort)errorCode); errorBuffer.Put((ushort)errorLocation); errorBuffer.PutString(errorParameter); errorBuffer.PutString("ApplicationVersion"); //!!!!!!!!!!!!!!!!!!!!!!!!! // Send(errorBuffer); Il faut d'abord rendre la main au navigateur qui va immédiatement revenir pour emettre ce dvbuffer responseAlreadySent = true; // je garde le DVBuffer, j'en fait une copie en profondeur DVBufferATransmettreImmediatement = new DVBuffer(errorBuffer.LeBuffer, 0, errorBuffer.GetTaille()); }