#nullable enable
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Serialization;
using Microsoft.Scripting.Runtime;
namespace IronPython.Runtime.Exceptions {
#region Generated SyntaxWarningException
[Serializable]
public class SyntaxWarningException : WarningException, IPythonAwareException {
private PythonExceptions.BaseException? _pyExceptionObject;
private List<DynamicStackFrame>? _frames;
private TraceBack? _traceback;
public SyntaxWarningException() : base() { }
public SyntaxWarningException(string msg) : base(msg) { }
public SyntaxWarningException(string message, Exception innerException)
: base(message, innerException) {
}
#if FEATURE_SERIALIZATION
protected SyntaxWarningException(SerializationInfo info, StreamingContext context) : base(info, context) { }
public override void GetObjectData(SerializationInfo info, StreamingContext context) {
info.AddValue("frames", _frames);
info.AddValue("traceback", _traceback);
base.GetObjectData(info, context);
}
#endif
PythonExceptions.BaseException? IPythonAwareException.PythonException {
get {
if (_pyExceptionObject == null) {
var newEx = new PythonExceptions.BaseException(PythonExceptions.SyntaxWarning);
newEx.InitializeFromClr(this);
_pyExceptionObject = newEx;
}
return _pyExceptionObject;
}
set { _pyExceptionObject = value; }
}
List<DynamicStackFrame>? IPythonAwareException.Frames {
get { return _frames; }
set { _frames = value; }
}
TraceBack? IPythonAwareException.TraceBack {
get { return _traceback; }
set { _traceback = value; }
}
}
#endregion
}