Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

50 lines
2.0 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="InternalBufferOverflowException.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
/*
*/
namespace System.IO {
using System.Diagnostics;
using System.Runtime.Serialization;
using System;
/// <devdoc>
/// <para>The exception that is thrown when the internal buffer overflows.</para>
/// </devdoc>
[Serializable]
public class InternalBufferOverflowException : SystemException {
/// <devdoc>
/// <para>Initializes a new default instance of the <see cref='System.IO.InternalBufferOverflowException'/> class.</para>
/// </devdoc>
public InternalBufferOverflowException() : base() {
HResult = HResults.InternalBufferOverflow;
}
/// <devdoc>
/// <para>Initializes a new instance of the <see cref='System.IO.InternalBufferOverflowException'/> class with the error
/// message to be displayed
/// specified.</para>
/// </devdoc>
public InternalBufferOverflowException(string message) : base(message) {
HResult =HResults.InternalBufferOverflow;
}
/// <devdoc>
/// <para>Initializes a new instance of the <see cref='System.IO.InternalBufferOverflowException'/>
/// class with the message to be displayed and the generated inner exception specified.</para>
/// </devdoc>
public InternalBufferOverflowException(string message, Exception inner) : base(message, inner) {
HResult = HResults.InternalBufferOverflow;
}
/// <internalonly/>
protected InternalBufferOverflowException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}