namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class AccessViolationException : SystemException
{
public AccessViolationException()
protected AccessViolationException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
#pragma warning disable 169 // Field is not used from managed.
// to create their own exceptions do so by extending this class.
// ApplicationException extends but adds no new functionality to
// RecoverableException.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ApplicationException : Exception
{
// Creates a new ApplicationException with its message string set to
protected ApplicationException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
// The ArgumentException is thrown when an argument does not meet
// the contract of the method. Ideally it should give a meaningful error
// message describing what was wrong and which parameter is incorrect.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ArgumentException : SystemException
{
private String _paramName;
protected ArgumentException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
+ _paramName = info.GetString("ParamName");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("ParamName", _paramName, typeof(string));
}
public override String Message
{
// The ArgumentException is thrown when an argument
// is null when it shouldn't be.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ArgumentNullException : ArgumentException
{
// Creates a new ArgumentNullException with its message
protected ArgumentNullException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
// The ArgumentOutOfRangeException is thrown when an argument
- // is outside the legal range for that argument.
+ // is outside the legal range for that argument.
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ArgumentOutOfRangeException : ArgumentException
{
private Object _actualValue;
protected ArgumentOutOfRangeException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
+ _actualValue = info.GetValue("ActualValue", typeof(object));
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("ActualValue", _actualValue, typeof(object));
}
public override String Message
{
// The ArithmeticException is thrown when overflow or underflow
// occurs.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ArithmeticException : SystemException
{
// Creates a new ArithmeticException with its message string set to
protected ArithmeticException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
{
// The ArrayMismatchException is thrown when an attempt to store
// an object of the wrong type within an array occurs.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ArrayTypeMismatchException : SystemException
{
// Creates a new ArrayMismatchException with its message string set to
protected ArrayTypeMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public partial class BadImageFormatException : SystemException
{
private String _fileName; // The name of the corrupt PE file.
protected BadImageFormatException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
+ _fileName = info.GetString("BadImageFormat_FileName");
+ _fusionLog = info.GetString("BadImageFormat_FusionLog");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("BadImageFormat_FileName", _fileName, typeof(string));
+ info.AddValue("BadImageFormat_FusionLog", _fusionLog, typeof(string));
}
public override String Message
namespace System.Collections.Generic
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class KeyNotFoundException : SystemException
{
public KeyNotFoundException()
protected KeyNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class DataMisalignedException : SystemException
{
public DataMisalignedException()
{
HResult = HResults.COR_E_DATAMISALIGNED;
}
+
+ internal DataMisalignedException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class DivideByZeroException : ArithmeticException
{
public DivideByZeroException()
protected DivideByZeroException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class DllNotFoundException : TypeLoadException
{
public DllNotFoundException()
protected DllNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
{
// The DuplicateWaitObjectException is thrown when an object
// appears more than once in the list of objects to WaitAll or WaitAny.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class DuplicateWaitObjectException : ArgumentException
{
private static volatile String s_duplicateWaitObjectMessage = null;
protected DuplicateWaitObjectException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class EntryPointNotFoundException : TypeLoadException
{
public EntryPointNotFoundException()
protected EntryPointNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
[Obsolete("This type previously indicated an unspecified fatal error in the runtime. The runtime no longer raises this exception so this type is obsolete.")]
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class ExecutionEngineException : SystemException
{
public ExecutionEngineException()
{
HResult = HResults.COR_E_EXECUTIONENGINE;
}
+
+ internal ExecutionEngineException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class FieldAccessException : MemberAccessException
{
public FieldAccessException()
protected FieldAccessException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class FormatException : SystemException
{
public FormatException()
protected FormatException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Globalization
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class CultureNotFoundException : ArgumentException
{
private string _invalidCultureName; // unrecognized culture name
protected CultureNotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
+ _invalidCultureId = (int?)info.GetValue("InvalidCultureId", typeof(int?));
+ _invalidCultureName = (string)info.GetValue("InvalidCultureName", typeof(string));
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("InvalidCultureId", _invalidCultureId, typeof(int?));
+ info.AddValue("InvalidCultureName", _invalidCultureName, typeof(string));
}
public virtual Nullable<int> InvalidCultureId
* the Win32 errorcode-as-HRESULT ERROR_PATH_NOT_FOUND (0x80070003)
* and STG_E_PATHNOTFOUND (0x80030003).
*/
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class DirectoryNotFoundException : IOException
{
public DirectoryNotFoundException()
protected DirectoryNotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.IO
{
//Thrown when trying to access a drive that is not available.
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
internal class DriveNotFoundException : IOException
{
public DriveNotFoundException()
protected DriveNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.IO
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class EndOfStreamException : IOException
{
public EndOfStreamException()
protected EndOfStreamException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.IO
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public partial class FileLoadException : IOException
{
public FileLoadException()
protected FileLoadException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
+ FileName = info.GetString("FileLoad_FileName");
+ FusionLog = info.GetString("FileLoad_FusionLog");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("FileLoad_FileName", FileName, typeof(string));
+ info.AddValue("FileLoad_FusionLog", FusionLog, typeof(string));
}
}
}
namespace System.IO
{
// Thrown when trying to access a file that doesn't exist on disk.
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public partial class FileNotFoundException : IOException
{
public FileNotFoundException()
protected FileNotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
+ FileName = info.GetString("FileNotFound_FileName");
+ FusionLog = info.GetString("FileNotFound_FusionLog");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("FileNotFound_FileName", FileName, typeof(string));
+ info.AddValue("FileNotFound_FusionLog", FusionLog, typeof(string));
}
}
}
namespace System.IO
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class IOException : SystemException
{
public IOException()
protected IOException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.IO
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class PathTooLongException : IOException
{
public PathTooLongException()
protected PathTooLongException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class IndexOutOfRangeException : SystemException
{
public IndexOutOfRangeException()
{
HResult = HResults.COR_E_INDEXOUTOFRANGE;
}
+
+ internal IndexOutOfRangeException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class InsufficientExecutionStackException : SystemException
{
public InsufficientExecutionStackException()
{
HResult = HResults.COR_E_INSUFFICIENTEXECUTIONSTACK;
}
+
+ internal InsufficientExecutionStackException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class InvalidCastException : SystemException
{
public InvalidCastException()
protected InvalidCastException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class InvalidOperationException : SystemException
{
public InvalidOperationException()
protected InvalidOperationException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class InvalidProgramException : SystemException
{
public InvalidProgramException()
{
HResult = HResults.COR_E_INVALIDPROGRAM;
}
+
+ internal InvalidProgramException(SerializationInfo info, StreamingContext context) : base(info, context) { }
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class InvalidTimeZoneException : Exception
{
public InvalidTimeZoneException()
protected InvalidTimeZoneException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
{
// The MemberAccessException is thrown when trying to access a class
// member fails.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class MemberAccessException : SystemException
{
// Creates a new MemberAccessException with its message string set to
protected MemberAccessException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class MethodAccessException : MemberAccessException
{
public MethodAccessException()
protected MethodAccessException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class MissingMethodException : MissingMemberException
{
public MissingMethodException()
protected MissingMethodException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
public override string Message
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class MulticastNotSupportedException : SystemException
{
public MulticastNotSupportedException()
{
HResult = HResults.COR_E_MULTICASTNOTSUPPORTED;
}
+
+ internal MulticastNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class NotFiniteNumberException : ArithmeticException
{
private double _offendingNumber;
protected NotFiniteNumberException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
+ _offendingNumber = info.GetInt32("OffendingNumber");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("OffendingNumber", _offendingNumber, typeof(Int32));
}
public double OffendingNumber
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class NotImplementedException : SystemException
{
public NotImplementedException()
protected NotImplementedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class NotSupportedException : SystemException
{
public NotSupportedException()
protected NotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class NullReferenceException : SystemException
{
public NullReferenceException()
protected NullReferenceException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
/// <para> The exception that is thrown when accessing an object that was
/// disposed.</para>
/// </devdoc>
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ObjectDisposedException : InvalidOperationException
{
private String _objectName;
protected ObjectDisposedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
+ _objectName = info.GetString("ObjectName");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("ObjectName", ObjectName, typeof(string));
}
/// <devdoc>
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class OperationCanceledException : SystemException
{
[NonSerialized]
protected OperationCanceledException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class OverflowException : ArithmeticException
{
public OverflowException()
protected OverflowException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class PlatformNotSupportedException : NotSupportedException
{
public PlatformNotSupportedException()
protected PlatformNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class RankException : SystemException
{
public RankException()
protected RankException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Reflection
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class AmbiguousMatchException : SystemException
{
public AmbiguousMatchException()
{
HResult = HResults.COR_E_AMBIGUOUSMATCH;
}
+
+ internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
namespace System.Reflection
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class CustomAttributeFormatException : FormatException
{
public CustomAttributeFormatException()
protected CustomAttributeFormatException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Reflection
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class InvalidFilterCriteriaException : ApplicationException
{
public InvalidFilterCriteriaException()
protected InvalidFilterCriteriaException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Reflection
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TargetException : ApplicationException
{
public TargetException()
protected TargetException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Reflection
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class TargetInvocationException : ApplicationException
{
public TargetInvocationException(Exception inner)
{
HResult = HResults.COR_E_TARGETINVOCATION;
}
+
+ internal TargetInvocationException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
}
}
namespace System.Reflection
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class TargetParameterCountException : ApplicationException
{
public TargetParameterCountException()
{
HResult = HResults.COR_E_TARGETPARAMCOUNT;
}
+
+ internal TargetParameterCountException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
}
}
namespace System.Resources
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class MissingManifestResourceException : SystemException
{
public MissingManifestResourceException()
protected MissingManifestResourceException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Resources
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class MissingSatelliteAssemblyException : SystemException
{
private String _cultureName;
protected MissingSatelliteAssemblyException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
public String CultureName
// See the LICENSE file in the project root for more information.
using System;
+using System.Diagnostics.Contracts;
using System.Runtime.Serialization;
namespace System.Runtime.CompilerServices
/// <summary>
/// Exception used to wrap all non-CLS compliant exceptions.
/// </summary>
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class RuntimeWrappedException : Exception
{
private Object _wrappedException; // EE expects this name
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
+ if (info == null)
+ {
+ throw new ArgumentNullException(nameof(info));
+ }
+ Contract.EndContractBlock();
base.GetObjectData(info, context);
+ info.AddValue("WrappedException", _wrappedException, typeof(object));
+ }
+
+ internal RuntimeWrappedException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ _wrappedException = info.GetValue("WrappedException", typeof(object));
}
public Object WrappedException => _wrappedException;
{
// Base exception for COM Interop errors &; Structured Exception Handler
// exceptions.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ExternalException : SystemException
{
public ExternalException()
protected ExternalException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
public virtual int ErrorCode
namespace System.Runtime.Serialization
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SerializationException : SystemException
{
private static String s_nullMessage = SR.SerializationException;
protected SerializationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Security.Cryptography
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class CryptographicException : SystemException
{
public CryptographicException()
protected CryptographicException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Security
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SecurityException : SystemException
{
public SecurityException()
protected SecurityException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
public override string ToString() => base.ToString();
namespace System.Security
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class VerificationException : SystemException
{
public VerificationException()
protected VerificationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class StackOverflowException : SystemException
{
public StackOverflowException()
{
HResult = HResults.COR_E_STACKOVERFLOW;
}
+
+ internal StackOverflowException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SystemException : Exception
{
public SystemException()
protected SystemException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class AbandonedMutexException : SystemException
{
private int _mutexIndex = -1;
protected AbandonedMutexException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
private void SetupException(int location, WaitHandle handle)
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class LockRecursionException : System.Exception
{
public LockRecursionException()
protected LockRecursionException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SemaphoreFullException : SystemException
{
public SemaphoreFullException() : base(SR.Threading_SemaphoreFullException)
protected SemaphoreFullException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SynchronizationLockException : SystemException
{
public SynchronizationLockException()
protected SynchronizationLockException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
/// <summary>
/// Represents an exception used to communicate task cancellation.
/// </summary>
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TaskCanceledException : OperationCanceledException
{
[NonSerialized]
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination. </param>
protected TaskCanceledException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
/// <summary>
/// Represents an exception used to communicate an invalid operation by a
/// <see cref="T:System.Threading.Tasks.TaskScheduler"/>.
/// </summary>
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TaskSchedulerException : Exception
{
/// <summary>
protected TaskSchedulerException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class ThreadAbortException : SystemException
{
internal ThreadAbortException()
}
public object ExceptionState => null;
+
+ internal ThreadAbortException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
}
}
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class ThreadStartException : SystemException
{
internal ThreadStartException()
{
HResult = HResults.COR_E_THREADSTART;
}
+
+ internal ThreadStartException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
}
}
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ThreadStateException : SystemException
{
public ThreadStateException()
protected ThreadStateException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class WaitHandleCannotBeOpenedException : ApplicationException
{
public WaitHandleCannotBeOpenedException() : base(SR.Threading_WaitHandleCannotBeOpenedException)
protected WaitHandleCannotBeOpenedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TimeZoneNotFoundException : Exception
{
public TimeZoneNotFoundException()
protected TimeZoneNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TimeoutException : SystemException
{
public TimeoutException()
protected TimeoutException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
{
// TypeAccessException derives from TypeLoadException rather than MemberAccessException because in
// pre-v4 releases of the runtime TypeLoadException was used in lieu of a TypeAccessException.
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TypeAccessException : TypeLoadException
{
public TypeAccessException()
protected TypeAccessException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class TypeInitializationException : SystemException
{
private String _typeName;
HResult = HResults.COR_E_TYPEINITIALIZATION;
}
+ internal TypeInitializationException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ _typeName = info.GetString("TypeName");
+ }
+
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("TypeName", TypeName, typeof(string));
}
public String TypeName
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TypeUnloadedException : SystemException
{
public TypeUnloadedException()
protected TypeUnloadedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
// The UnauthorizedAccessException is thrown when access errors
- // occur from IO or other OS methods.
+ // occur from IO or other OS methods.
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class UnauthorizedAccessException : SystemException
{
public UnauthorizedAccessException()
protected UnauthorizedAccessException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
internal class AppDomainUnloadedException : SystemException
{
public AppDomainUnloadedException()
HResult = HResults.COR_E_APPDOMAINUNLOADED;
}
- //
- //This constructor is required for serialization.
- //
protected AppDomainUnloadedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class InsufficientMemoryException : OutOfMemoryException
{
public InsufficientMemoryException()
{
HResult = HResults.COR_E_INSUFFICIENTMEMORY;
}
+
+ private InsufficientMemoryException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class MissingFieldException : MissingMemberException, ISerializable
{
public MissingFieldException()
protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
public override String Message
using System.Runtime.CompilerServices;
using System.Globalization;
using System.Runtime.Versioning;
+using System.Diagnostics.Contracts;
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class MissingMemberException : MemberAccessException, ISerializable
{
public MissingMemberException()
protected MissingMemberException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
+ ClassName = (string)info.GetString("MMClassName");
+ MemberName = (string)info.GetString("MMMemberName");
+ Signature = (byte[])info.GetValue("MMSignature", typeof(byte[]));
}
public override String Message
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
+ if (info == null)
+ {
+ throw new ArgumentNullException(nameof(info));
+ }
+ Contract.EndContractBlock();
base.GetObjectData(info, context);
+ info.AddValue("MMClassName", ClassName, typeof(string));
+ info.AddValue("MMSignature", Signature, typeof(byte[]));
}
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class OutOfMemoryException : SystemException
{
public OutOfMemoryException()
protected OutOfMemoryException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Runtime.InteropServices
{
// Exception for COM Interop errors where we don't recognize the HResult.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class COMException : ExternalException
{
public COMException()
protected COMException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
public override String ToString()
namespace System.Runtime.InteropServices
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class InvalidComObjectException : SystemException
{
public InvalidComObjectException()
protected InvalidComObjectException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Runtime.InteropServices
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class InvalidOleVariantTypeException : SystemException
{
public InvalidOleVariantTypeException()
protected InvalidOleVariantTypeException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Runtime.InteropServices
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class MarshalDirectiveException : SystemException
{
public MarshalDirectiveException()
protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Runtime.InteropServices
{
// Exception for Structured Exception Handler exceptions.
- //
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SEHException : ExternalException
{
public SEHException()
protected SEHException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
// Exceptions can be resumable, meaning a filtered exception
namespace System.Runtime.InteropServices
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SafeArrayRankMismatchException : SystemException
{
public SafeArrayRankMismatchException()
protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Runtime.InteropServices
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SafeArrayTypeMismatchException : SystemException
{
public SafeArrayTypeMismatchException()
protected SafeArrayTypeMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
namespace System.Threading
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class ThreadInterruptedException : SystemException
{
public ThreadInterruptedException()
protected ThreadInterruptedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
}
}
}
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
+using System.Diagnostics.Contracts;
namespace System
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TypeLoadException : SystemException, ISerializable
{
public TypeLoadException()
protected TypeLoadException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- throw new PlatformNotSupportedException();
+ if (info == null)
+ throw new ArgumentNullException(nameof(info));
+ Contract.EndContractBlock();
+ ClassName = info.GetString("TypeLoadClassName");
+ AssemblyName = info.GetString("TypeLoadAssemblyName");
+ MessageArg = info.GetString("TypeLoadMessageArg");
+ ResourceId = info.GetInt32("TypeLoadResourceID");
}
[DllImport(JitHelpers.QCall, CharSet = CharSet.Unicode)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
+ if (info == null)
+ throw new ArgumentNullException(nameof(info));
+ Contract.EndContractBlock();
+
base.GetObjectData(info, context);
+ info.AddValue("TypeLoadClassName", ClassName, typeof(string));
+ info.AddValue("TypeLoadAssemblyName", AssemblyName, typeof(string));
+ info.AddValue("TypeLoadMessageArg", MessageArg, typeof(string));
+ info.AddValue("TypeLoadResourceID", ResourceId);
}
// If ClassName != null, GetMessage will construct on the fly using it