public override void GetObjectData(SerializationInfo info, StreamingContext context) {
            if (info == null)
                throw new ArgumentNullException("info");

            base.GetObjectData(info, context);
            info.AddValue("ElementDescription", _elementDescription);
        }
        protected EarlyExitException(SerializationInfo info, StreamingContext context)
            : base(info, context) {
            if (info == null)
                throw new ArgumentNullException("info");

            this._decisionNumber = info.GetInt32("DecisionNumber");
        }
        protected RewriteCardinalityException(SerializationInfo info, StreamingContext context)
            : base(info, context) {
            if (info == null)
                throw new ArgumentNullException("info");

            _elementDescription = info.GetString("ElementDescription");
        }
        protected MismatchedTreeNodeException(SerializationInfo info, StreamingContext context)
            : base(info, context) {
            if (info == null)
                throw new ArgumentNullException("info");

            this._expecting = info.GetInt32("Expecting");
        }
        public override void GetObjectData(SerializationInfo info, StreamingContext context) {
            if (info == null)
                throw new ArgumentNullException("info");

            base.GetObjectData(info, context);
            info.AddValue("DecisionNumber", DecisionNumber);
        }
예제 #6
0
        protected MismatchedSetException(SerializationInfo info, StreamingContext context)
            : base(info, context) {
            if (info == null)
                throw new ArgumentNullException("info");

            this._expecting = (BitSet)info.GetValue("Expecting", typeof(BitSet));
        }
예제 #7
0
        protected MismatchedRangeException(SerializationInfo info, StreamingContext context)
            : base(info, context) {
            if (info == null)
                throw new ArgumentNullException("info");

            this._a = info.GetInt32("A");
            this._b = info.GetInt32("B");
        }
        protected FailedPredicateException(SerializationInfo info, StreamingContext context)
            : base(info, context) {
            if (info == null)
                throw new ArgumentNullException("info");

            this._ruleName = info.GetString("RuleName");
            this._predicateText = info.GetString("PredicateText");
        }
예제 #9
0
        protected NoViableAltException(SerializationInfo info, StreamingContext context)
            : base(info, context) {
            if (info == null)
                throw new ArgumentNullException("info");

            this._grammarDecisionDescription = info.GetString("GrammarDecisionDescription");
            this._decisionNumber = info.GetInt32("DecisionNumber");
            this._stateNumber = info.GetInt32("StateNumber");
        }
예제 #10
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
                throw new ArgumentNullException("info");

            base.GetObjectData(info, context);
            info.AddValue("A", _a);
            info.AddValue("B", _b);
        }
예제 #11
0
 void ISerializable.GetObjectData(
                                         SerializationInfo   info, 
                                         StreamingContext    context
                                     )
 {
     ((ISerializable) this.value).GetObjectData(info, context);
 }
예제 #12
0
 protected TableTransactionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(default(string))
 {
 }
예제 #13
0
 /// <summary>
 /// Initializes a new instance of the EmptyPhraseTagException class with the serialized data.
 /// </summary>
 /// <param name="info">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 /// <param name="context">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 private EmptyPhraseTagException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
 }
예제 #14
0
        protected RecognitionException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            if (info == null)
                throw new ArgumentNullException("info");

            _index = info.GetInt32("Index");
            _c = info.GetInt32("C");
            _line = info.GetInt32("Line");
            _charPositionInLine = info.GetInt32("CharPositionInLine");
            _approximateLineInfo = info.GetBoolean("ApproximateLineInfo");
        }
예제 #15
0
 private HttpValuesCollection(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
 }
 /// <summary>
 /// Constructs a new instance of the CloudTrailAccessNotEnabledException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected CloudTrailAccessNotEnabledException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #17
0
 /// <summary>
 /// Constructs a new instance of the ReservedNodeOfferingNotFoundException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected ReservedNodeOfferingNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
 /// <summary>
 /// Constructs a new instance of the TooManyTrafficPolicyVersionsForCurrentPolicyException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected TooManyTrafficPolicyVersionsForCurrentPolicyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #19
0
 /// <summary>
 /// Constructs a new instance of the WAFStaleDataException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected WAFStaleDataException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
 /// <summary>
 /// Constructs a new instance of the AmazonSecretsManagerException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected AmazonSecretsManagerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
 protected DescriptorNotInFlowException(
     System.Runtime.Serialization.SerializationInfo info,
     System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
 /// <summary>
 /// Constructs a new instance of the ServiceUnavailableException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected ServiceUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
 protected InvalidMemberException(SerializationInfo info, StreamingContext context) :
     base(info, context) {}
예제 #24
0
 protected SiteNullException(
     System.Runtime.Serialization.SerializationInfo info,
     System.Runtime.Serialization.StreamingContext context) : base(info, context)
 {
 }
예제 #25
0
 /// <summary>
 /// Initializes a new instance of the UntaggedElementException class with the serialized data.
 /// </summary>
 /// <param name="info">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 /// <param name="context">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 private UntaggedWordException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
 }
예제 #26
0
        protected MismatchedTokenException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            if (info == null)
                throw new ArgumentNullException("info");

            this._expecting = info.GetInt32("Expecting");
            this._tokenNames = new ReadOnlyCollection<string>((string[])info.GetValue("TokenNames", typeof(string[])));
        }
예제 #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnknownPartOfSpeechException"/> class with the serialized data.
 /// </summary>
 /// <param name="info">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 /// <param name="context">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 protected UnknownPartOfSpeechException(SerializationInfo info, StreamingContext context) :
     base(info, context)
 {
 }
예제 #28
0
 protected ParseException(SerializationInfo info, StreamingContext context) :
     base(info, context) {}
예제 #29
0
 /// <summary>
 /// Initializes a new instance of the UnknownClauseTypeException class with the serialized data.
 /// </summary>
 /// <param name="info">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 /// <param name="context">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 private UnknownClauseTypeException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
 }
예제 #30
0
 /// <summary>
 /// Initializes a new instance of the UnknownPOSException class with the serialized data.
 /// </summary>
 /// <param name="info">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 /// <param name="context">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 private UnknownWordTagException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
 }
 protected MethodNotFoundException(SerializationInfo info, StreamingContext context) :
     base(info, context) {}
 /// <summary>
 /// Constructs a new instance of the InvalidRevisionException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected InvalidRevisionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #33
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EmptyOrWhiteSpaceStringTaggedAsWordException"/> class with the serialized data.
 /// </summary>
 /// <param name="info">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 /// <param name="context">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 private EmptyOrWhiteSpaceStringTaggedAsWordException(SerializationInfo info, StreamingContext context) :
     base(info, context)
 {
 }
예제 #34
0
 protected RewriteEarlyExitException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
 }
예제 #35
0
		public void TestBadMessageData()
		{
			Log.LogWrite += BreakIn_LogWrite;
			try
			{

				string message = "Bad {500} Data: {0}";
				Exception myError = i_blow_up;
				LogEventArgs arg1 = null;

				LogEventHandler eh = new LogEventHandler(delegate(object s, LogEventArgs e) { arg1 = e; });
				Log.LogWrite += eh;
				Log.LogWrite += BreakIn_LogWrite;
				Log.Error(myError, message, i_blow_up);
				Log.LogWrite -= eh;
				Log.LogWrite -= BreakIn_LogWrite;

				Assert.IsNotNull(arg1);
				Assert.AreEqual(1, arg1.Count);
				Assert.AreEqual(1, arg1.ToArray().Length);

				EventData data = arg1.ToArray()[0];
				Assert.IsNotNull(data);
				BasicLogTest.AssertMessage(GetType(), null, data, LogLevels.Error, null, myError.GetType());

				Assert.IsTrue(data.ToString().Contains(message));
				Assert.IsTrue(data.ToString("{Message:%s!} {}").Contains(message));
				Assert.IsTrue(data.ToString("{Exception}").Contains(myError.GetType().FullName));

				data.Write((System.Xml.XmlTextWriter)null);
				System.Xml.XmlTextWriter wtr = new System.Xml.XmlTextWriter(new MemoryStream(new byte[10]), System.Text.Encoding.UTF32);
				data.Write(wtr);

				data.Write(new StreamWriter(new MemoryStream(new byte[10])));
				foreach (string format in badFormats)
					data.Write(new StreamWriter(new MemoryStream(new byte[10])), format);

				BinaryFormatter ser = new BinaryFormatter();
				MemoryStream ms = new MemoryStream();

				ser.Serialize(ms, arg1);
				Assert.Greater((int)ms.Position, 0);

				ms.Position = 0;
				object restored = ser.Deserialize(ms);
				Assert.IsNotNull(restored);
				Assert.AreEqual(typeof(LogEventArgs), restored.GetType());
				LogEventArgs arg2 = restored as LogEventArgs;

				Assert.IsNotNull(arg2);
				Assert.AreEqual(1, arg2.Count);
				Assert.AreEqual(1, arg2.ToArray().Length);

				data = arg2.ToArray()[0];
				Assert.IsNotNull(data);

				Assert.IsNotNull(data.Exception);
				Assert.AreNotEqual(myError.GetType(), data.Exception.GetType());
				Assert.AreEqual(typeof(Log).Assembly, data.Exception.GetType().Assembly);
				Assert.IsTrue(data.Exception.Message.Contains(myError.GetType().FullName));
				Assert.IsNotNull(data.Exception.ToString());
				Assert.AreNotEqual(String.Empty, data.Exception.ToString());
				Assert.IsTrue(data.Exception.ToString().Contains(myError.GetType().FullName));

				BasicLogTest.AssertMessage(GetType(), null, data, LogLevels.Error, null, data.Exception.GetType());

				System.Runtime.Serialization.SerializationInfo info = new System.Runtime.Serialization.SerializationInfo(data.Exception.GetType(), new myconverter());
				System.Runtime.Serialization.StreamingContext ctx = new System.Runtime.Serialization.StreamingContext();

				Exception err = (Exception)
					data.Exception.GetType().InvokeMember(null, System.Reflection.BindingFlags.CreateInstance,
					null, null, new object[] { info, ctx });

				Assert.IsNotNull(err.Message);
				Assert.IsNotEmpty(err.Message);
				Assert.IsNotNull(err.ToString());
				Assert.IsNotEmpty(err.ToString());
			}
			finally
			{
				Log.LogWrite -= BreakIn_LogWrite;
				Log.LogWrite -= BreakIn_LogWrite;
				Log.LogWrite -= BreakIn_LogWrite;
			}
		}
 /// <summary>
 /// Constructs a new instance of the RequestTooLargeException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected RequestTooLargeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #37
0
 /// <summary>
 /// Initializes a new instance of the UndelimitedPhraseException class with its message
 /// string set to message.
 /// </summary>
 /// <param name="info">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 /// <param name="context">
 /// The object that holds the serialized object data about the exception being thrown.
 /// </param>
 private UndelimitedPhraseException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
 }
 protected PasswordFormatNotSupportedException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
 }
예제 #39
0
 /// <summary>
 /// Constructs a new instance of the NodeQuotaForCustomerExceededException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected NodeQuotaForCustomerExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #40
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestException"/> class 
 /// with serialized data.
 /// </summary>
 private TestException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
 }
예제 #41
0
 /// <summary>
 /// Constructs a new instance of the AmazonClientException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected AmazonClientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
 protected DuplicateMethodException(SerializationInfo info, StreamingContext context) :
     base(info, context) {}
예제 #43
0
 protected Exc(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext sc) : base(si, sc)
 {
 }
예제 #44
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApplicationException"/> class 
        /// with serialized data.
        /// </summary>

        protected ApplicationException(SerializationInfo info, StreamingContext context) : 
            base(info, context) {}
 /// <summary>
 /// Constructs a new instance of the TooManyDistributionsException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected TooManyDistributionsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #46
0
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
                throw new ArgumentNullException("info");

            base.GetObjectData(info, context);
            info.AddValue("GrammarDecisionDescription", _grammarDecisionDescription);
            info.AddValue("DecisionNumber", _decisionNumber);
            info.AddValue("StateNumber", _stateNumber);
        }
예제 #47
0
 /// <summary>
 /// Constructs a new instance of the ShareLimitExceededException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected ShareLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
     this.RequestId = (string)info.GetValue("RequestId", typeof(string));
 }
        public override void GetObjectData(SerializationInfo info, StreamingContext context) {
            if (info == null)
                throw new ArgumentNullException("info");

            base.GetObjectData(info, context);
            info.AddValue("RuleName", _ruleName);
            info.AddValue("PredicateText", _predicateText);
        }
예제 #49
0
 public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     base.GetObjectData(info, context);
     info.AddValue("RequestId", this.RequestId);
 }
 protected TargetMethodException(SerializationInfo info, StreamingContext context) :
     base(info, context) {}
예제 #51
0
 /// <summary>
 /// Constructs a new instance of the AccessDeniedException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #52
0
 protected MissingTokenException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
 }
예제 #53
0
 protected GifDecoderException(
     System.Runtime.Serialization.SerializationInfo info,
     System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #54
0
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
                throw new ArgumentNullException("info");

            base.GetObjectData(info, context);
            info.AddValue("Expecting", _expecting);
            info.AddValue("TokenNames", (_tokenNames != null) ? new List<string>(_tokenNames).ToArray() : default(string[]));
        }
 /// <summary>
 /// Constructs a new instance of the ParameterMaxVersionLimitExceededException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected ParameterMaxVersionLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }
예제 #56
0
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
                throw new ArgumentNullException("info");

            base.GetObjectData(info, context);
            info.AddValue("Index", _index);
            info.AddValue("C", _c);
            info.AddValue("Line", _line);
            info.AddValue("CharPositionInLine", _charPositionInLine);
            info.AddValue("ApproximateLineInfo", _approximateLineInfo);
        }
 public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     base.GetObjectData(info, context);
 }
 protected MismatchedNotSetException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
 }
 /// <summary>
 /// Constructs a new instance of the InsufficientCapabilitiesException 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" /> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
 protected InsufficientCapabilitiesException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
 }