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