/// <summary> /// Creates a new exception instance from the serialization context. /// </summary> /// <param name="info">The serialization info.</param> /// <param name="context">The serialization context.</param> protected YouTubeAtomException(SerializationInfo info, StreamingContext context) : base(info, context) { // Validate the arguments. if (null == info) throw new ArgumentNullException("info"); // Set the fields. this.atom = (InetApi.YouTube.Api.V2.Atom.Atom)info.GetValue("atom", typeof(InetApi.YouTube.Api.V2.Atom.Atom)); }
/// <summary> /// Creates a new exception instance. /// </summary> /// <param name="message">The exception message.</param> /// <param name="innerException">The inner exception.</param> /// <param name="atom">The atom.</param> public YouTubeAtomException(string message, Exception innerException, InetApi.YouTube.Api.V2.Atom.Atom atom) : base(message, innerException) { this.atom = atom; }