Beispiel #1
0
        protected Exception CreateException(InvalidDataException innerException, string framingFault)
        {
            Exception result = CreateException(innerException);

            FramingEncodingString.AddFaultString(result, framingFault);
            return(result);
        }
Beispiel #2
0
        protected override Exception OnSizeQuotaExceeded(int size)
        {
            Exception result = new InvalidDataException(SR.Format(SR.FramingContentTypeTooLong, size));

            FramingEncodingString.AddFaultString(result, FramingEncodingString.ContentTypeTooLongFault);
            return(result);
        }