/// <summary> /// Initializes a new instance of the <see cref="BaZicInterpreterStateChangeEventArgs"/> class. /// </summary> /// <param name="state">The <see cref="BaZicInterpreterState"/></param> public BaZicInterpreterStateChangeEventArgs(BaZicInterpreterState state) { if (state == BaZicInterpreterState.StoppedWithError) { throw new ArgumentOutOfRangeException(nameof(state), L.BaZic.Runtime.BaZicInterpreterStateChangeEventArgs.StoppedWithErrorForbidden); } State = state; }
public StateException(SerializationInfo info, StreamingContext context) : base(info, context) { Sate = (BaZicInterpreterState)info.GetValue(nameof(Sate), typeof(BaZicInterpreterState)); }
/// <summary> /// Initializes a new instance of <see cref="StateException"/> /// </summary> /// <param name="state">The state</param> internal StateException(BaZicInterpreterState state) : base(L.BaZic.Runtime.Debugger.Exception.StateException) { Sate = state; }