You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
44
external/referencesource/mscorlib/system/overflowexception.cs
vendored
Normal file
44
external/referencesource/mscorlib/system/overflowexception.cs
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
// ==++==
|
||||
//
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// ==--==
|
||||
/*=============================================================================
|
||||
**
|
||||
** Class: OverflowException
|
||||
**
|
||||
**
|
||||
** Purpose: Exception class for Arthimatic Overflows.
|
||||
**
|
||||
**
|
||||
=============================================================================*/
|
||||
|
||||
namespace System {
|
||||
|
||||
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
[System.Runtime.InteropServices.ComVisible(true)]
|
||||
[Serializable]
|
||||
public class OverflowException : ArithmeticException {
|
||||
public OverflowException()
|
||||
: base(Environment.GetResourceString("Arg_OverflowException")) {
|
||||
SetErrorCode(__HResults.COR_E_OVERFLOW);
|
||||
}
|
||||
|
||||
public OverflowException(String message)
|
||||
: base(message) {
|
||||
SetErrorCode(__HResults.COR_E_OVERFLOW);
|
||||
}
|
||||
|
||||
public OverflowException(String message, Exception innerException)
|
||||
: base(message, innerException) {
|
||||
SetErrorCode(__HResults.COR_E_OVERFLOW);
|
||||
}
|
||||
|
||||
protected OverflowException(SerializationInfo info, StreamingContext context) : base(info, context) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user