System.Runtime.Serialization.XmlObjectSerializer.IsStartObjectHandleExceptions C# (CSharp) Method

IsStartObjectHandleExceptions() private method

private IsStartObjectHandleExceptions ( System.Runtime.Serialization.XmlReaderDelegator reader ) : bool
reader System.Runtime.Serialization.XmlReaderDelegator
return bool
        internal bool IsStartObjectHandleExceptions(XmlReaderDelegator reader)
        {
            try
            {
                CheckNull(reader, nameof(reader));
                return InternalIsStartObject(reader);
            }
            catch (XmlException ex)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(SR.ErrorIsStartObject, GetDeserializeType(), ex), ex));
            }
            catch (FormatException ex)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(GetTypeInfoError(SR.ErrorIsStartObject, GetDeserializeType(), ex), ex));
            }
        }