/IronPython_Main/Languages/IronPython/IronPython/Runtime/Exceptions/DeprecationWarningException.Generated.cs
C# | 80 lines | 48 code | 14 blank | 18 comment | 2 complexity | c2be89b9e8f5f8b4995d04726d80d71a MD5 | raw file
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
- /* ****************************************************************************
- *
- * Copyright (c) Microsoft Corporation.
- *
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
- * by the terms of the Apache License, Version 2.0.
- *
- * You must not remove this notice, or any other, from this software.
- *
- *
- * ***************************************************************************/
-
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Runtime.Serialization;
- using Microsoft.Scripting.Runtime;
-
- namespace IronPython.Runtime.Exceptions {
- #region Generated DeprecationWarningException
-
- // *** BEGIN GENERATED CODE ***
- // generated by function: gen_one_exception_specialized from: generate_exceptions.py
-
-
- [Serializable]
- public class DeprecationWarningException : WarningException, IPythonAwareException {
- private object _pyExceptionObject;
- private List<DynamicStackFrame> _frames;
- private TraceBack _traceback;
-
- public DeprecationWarningException() : base() { }
- public DeprecationWarningException(string msg) : base(msg) { }
- public DeprecationWarningException(string message, Exception innerException)
- : base(message, innerException) {
- }
- #if !SILVERLIGHT // SerializationInfo
- protected DeprecationWarningException(SerializationInfo info, StreamingContext context) : base(info, context) { }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
- public override void GetObjectData(SerializationInfo info, StreamingContext context) {
- info.AddValue("frames", _frames);
- info.AddValue("traceback", _traceback);
- base.GetObjectData(info, context);
- }
- #endif
-
- object IPythonAwareException.PythonException {
- get {
- if (_pyExceptionObject == null) {
- var newEx = new PythonExceptions.BaseException(PythonExceptions.DeprecationWarning);
- 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; }
- }
- }
-
-
- // *** END GENERATED CODE ***
-
- #endregion
-
- // *** END GENERATED CODE ***
- }