/// <summary> /// Initializes a new instance of the <see cref="AggregateException"/> class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds /// the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that /// contains contextual information about the source or destination. </param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> argument is null.</exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The exception could not be deserialized correctly.</exception> protected AggregateException(SerializationInfo info, StreamingContext context) { if (info == null) { throw new ArgumentNullException(nameof(info)); } ExceptionSerializer.SetObjectData(this, info, context); Exception[] innerExceptions = info.GetValue("InnerExceptions", typeof(Exception[])) as Exception[]; if (innerExceptions == null) { throw new SerializationException(SR.AggregateException_DeserializationFailure); } m_innerExceptions = new ReadOnlyCollection <Exception>(innerExceptions); }
protected TypeAccessException(SerializationInfo info, StreamingContext context) { ExceptionSerializer.SetObjectData(this, info, context); this.SetErrorCode(COR_E_TYPEACCESS); }
protected InvalidTimeZoneException(SerializationInfo info, StreamingContext context) { ExceptionSerializer.SetObjectData(this, info, context); }
protected LockRecursionException(SerializationInfo info, StreamingContext context) //: base(info, context) { ExceptionSerializer.SetObjectData(this, info, context); }
/// <summary> /// Initializes a new instance of the BarrierPostPhaseException class with serialized data. /// </summary> /// <param name="info">The object that holds the serialized object data.</param> /// <param name="context">The contextual information about the source or destination.</param> protected BarrierPostPhaseException(SerializationInfo info, StreamingContext context) //: base(info, context) { ExceptionSerializer.SetObjectData(this, info, context); }
protected ArgumentException2(SerializationInfo info, StreamingContext context) { ExceptionSerializer.SetObjectData(this, info, context); _paramName = info.GetString("ParamName"); }
protected SemaphoreFullException(SerializationInfo info, StreamingContext context) { ExceptionSerializer.SetObjectData(this, info, context); }
protected SynchronizationLockException(SerializationInfo info, StreamingContext context) //: base(info, context) { ExceptionSerializer.SetObjectData(this, info, context); }
protected Exception2(SerializationInfo info, StreamingContext context) { ExceptionSerializer.SetObjectData(this, info, context); }
protected ArgumentOutOfRangeException2(SerializationInfo info, StreamingContext context) { ExceptionSerializer.SetObjectData(this, info, context); _actualValue = info.GetValue("ActualValue", typeof(object)); }
protected WaitHandleCannotBeOpenedException(SerializationInfo info, StreamingContext context) //: base(info, context) { ExceptionSerializer.SetObjectData(this, info, context); }