コード例 #1
0
        protected Exception CreateException(InvalidDataException innerException, string framingFault)
        {
            Exception exception = this.CreateException(innerException);

            FramingEncodingString.AddFaultString(exception, framingFault);
            return(exception);
        }
コード例 #2
0
        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);
        }