protected Exception CreateException(InvalidDataException innerException, string framingFault) { Exception exception = this.CreateException(innerException); FramingEncodingString.AddFaultString(exception, framingFault); return(exception); }
protected override Exception OnSizeQuotaExceeded(int size) { string framingContentTypeTooLong = Resources.FramingContentTypeTooLong; object[] objArray = new object[] { size }; Exception invalidDataException = new InvalidDataException(Microsoft.ServiceBus.SR.GetString(framingContentTypeTooLong, objArray)); FramingEncodingString.AddFaultString(invalidDataException, "http://schemas.microsoft.com/ws/2006/05/framing/faults/ContentTypeTooLong"); return(invalidDataException); }