public TypeUnloadedException()
: base(SR.Arg_TypeUnloadedException)
{
- SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
+ HResult = __HResults.COR_E_TYPEUNLOADED;
}
public TypeUnloadedException(string message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
+ HResult = __HResults.COR_E_TYPEUNLOADED;
}
public TypeUnloadedException(string message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
+ HResult = __HResults.COR_E_TYPEUNLOADED;
}
//
public AppDomainUnloadedException()
: base(SR.Arg_AppDomainUnloadedException)
{
- SetErrorCode(__HResults.COR_E_APPDOMAINUNLOADED);
+ HResult = __HResults.COR_E_APPDOMAINUNLOADED;
}
//
public ArgumentOutOfRangeException()
: base(RangeMessage)
{
- SetErrorCode(__HResults.COR_E_ARGUMENTOUTOFRANGE);
+ HResult = __HResults.COR_E_ARGUMENTOUTOFRANGE;
}
public ArgumentOutOfRangeException(String paramName)
: base(RangeMessage, paramName)
{
- SetErrorCode(__HResults.COR_E_ARGUMENTOUTOFRANGE);
+ HResult = __HResults.COR_E_ARGUMENTOUTOFRANGE;
}
public ArgumentOutOfRangeException(String paramName, String message)
: base(message, paramName)
{
- SetErrorCode(__HResults.COR_E_ARGUMENTOUTOFRANGE);
+ HResult = __HResults.COR_E_ARGUMENTOUTOFRANGE;
}
public ArgumentOutOfRangeException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_ARGUMENTOUTOFRANGE);
+ HResult = __HResults.COR_E_ARGUMENTOUTOFRANGE;
}
// We will not use this in the classlibs, but we'll provide it for
: base(message, paramName)
{
m_actualValue = actualValue;
- SetErrorCode(__HResults.COR_E_ARGUMENTOUTOFRANGE);
+ HResult = __HResults.COR_E_ARGUMENTOUTOFRANGE;
}
public override String Message
public BadImageFormatException()
: base(SR.Arg_BadImageFormatException)
{
- SetErrorCode(__HResults.COR_E_BADIMAGEFORMAT);
+ HResult = __HResults.COR_E_BADIMAGEFORMAT;
}
public BadImageFormatException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_BADIMAGEFORMAT);
+ HResult = __HResults.COR_E_BADIMAGEFORMAT;
}
public BadImageFormatException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_BADIMAGEFORMAT);
+ HResult = __HResults.COR_E_BADIMAGEFORMAT;
}
public BadImageFormatException(String message, String fileName) : base(message)
{
- SetErrorCode(__HResults.COR_E_BADIMAGEFORMAT);
+ HResult = __HResults.COR_E_BADIMAGEFORMAT;
_fileName = fileName;
}
public BadImageFormatException(String message, String fileName, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_BADIMAGEFORMAT);
+ HResult = __HResults.COR_E_BADIMAGEFORMAT;
_fileName = fileName;
}
private BadImageFormatException(String fileName, String fusionLog, int hResult)
: base(null)
{
- SetErrorCode(hResult);
+ HResult = hResult;
_fileName = fileName;
_fusionLog = fusionLog;
SetMessageField();
public DllNotFoundException()
: base(SR.Arg_DllNotFoundException)
{
- SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
+ HResult = __HResults.COR_E_DLLNOTFOUND;
}
public DllNotFoundException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
+ HResult = __HResults.COR_E_DLLNOTFOUND;
}
public DllNotFoundException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
+ HResult = __HResults.COR_E_DLLNOTFOUND;
}
protected DllNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
public CrossAppDomainMarshaledException(String message, int errorCode)
: base(message)
{
- SetErrorCode(errorCode);
+ HResult = errorCode;
}
// Normally, only Telesto's UEF will see these exceptions.
public DirectoryNotFoundException()
: base(SR.Arg_DirectoryNotFoundException)
{
- SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND);
+ HResult = __HResults.COR_E_DIRECTORYNOTFOUND;
}
public DirectoryNotFoundException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND);
+ HResult = __HResults.COR_E_DIRECTORYNOTFOUND;
}
public DirectoryNotFoundException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND);
+ HResult = __HResults.COR_E_DIRECTORYNOTFOUND;
}
protected DirectoryNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
public DriveNotFoundException()
: base(SR.Arg_DriveNotFoundException)
{
- SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND);
+ HResult = __HResults.COR_E_DIRECTORYNOTFOUND;
}
public DriveNotFoundException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND);
+ HResult = __HResults.COR_E_DIRECTORYNOTFOUND;
}
protected DriveNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
public EndOfStreamException()
: base(SR.Arg_EndOfStreamException)
{
- SetErrorCode(__HResults.COR_E_ENDOFSTREAM);
+ HResult = __HResults.COR_E_ENDOFSTREAM;
}
public EndOfStreamException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_ENDOFSTREAM);
+ HResult = __HResults.COR_E_ENDOFSTREAM;
}
public EndOfStreamException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_ENDOFSTREAM);
+ HResult = __HResults.COR_E_ENDOFSTREAM;
}
protected EndOfStreamException(SerializationInfo info, StreamingContext context) : base(info, context)
private FileLoadException(string fileName, string fusionLog, int hResult)
: base(null)
{
- SetErrorCode(hResult);
+ HResult = hResult;
FileName = fileName;
FusionLog = fusionLog;
_message = FormatFileLoadExceptionMessage(FileName, HResult);
private FileNotFoundException(string fileName, string fusionLog, int hResult)
: base(null)
{
- SetErrorCode(hResult);
+ HResult = hResult;
FileName = fileName;
FusionLog = fusionLog;
SetMessageField();
public IOException()
: base(SR.Arg_IOException)
{
- SetErrorCode(__HResults.COR_E_IO);
+ HResult = __HResults.COR_E_IO;
}
public IOException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_IO);
+ HResult = __HResults.COR_E_IO;
}
public IOException(String message, int hresult)
: base(message)
{
- SetErrorCode(hresult);
+ HResult = hresult;
}
// Adding this for debuggers when looking at exceptions in partial
internal IOException(String message, int hresult, String maybeFullPath)
: base(message)
{
- SetErrorCode(hresult);
+ HResult = hresult;
_maybeFullPath = maybeFullPath;
}
public IOException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_IO);
+ HResult = __HResults.COR_E_IO;
}
protected IOException(SerializationInfo info, StreamingContext context) : base(info, context)
public PathTooLongException()
: base(SR.IO_PathTooLong)
{
- SetErrorCode(__HResults.COR_E_PATHTOOLONG);
+ HResult = __HResults.COR_E_PATHTOOLONG;
}
public PathTooLongException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_PATHTOOLONG);
+ HResult = __HResults.COR_E_PATHTOOLONG;
}
public PathTooLongException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_PATHTOOLONG);
+ HResult = __HResults.COR_E_PATHTOOLONG;
}
protected PathTooLongException(SerializationInfo info, StreamingContext context) : base(info, context)
public InsufficientMemoryException()
: base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory))
{
- SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY);
+ HResult = __HResults.COR_E_INSUFFICIENTMEMORY;
}
public InsufficientMemoryException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY);
+ HResult = __HResults.COR_E_INSUFFICIENTMEMORY;
}
public InsufficientMemoryException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY);
+ HResult = __HResults.COR_E_INSUFFICIENTMEMORY;
}
private InsufficientMemoryException(SerializationInfo info, StreamingContext context) : base(info, context)
public MissingFieldException()
: base(SR.Arg_MissingFieldException)
{
- SetErrorCode(__HResults.COR_E_MISSINGFIELD);
+ HResult = __HResults.COR_E_MISSINGFIELD;
}
public MissingFieldException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_MISSINGFIELD);
+ HResult = __HResults.COR_E_MISSINGFIELD;
}
public MissingFieldException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_MISSINGFIELD);
+ HResult = __HResults.COR_E_MISSINGFIELD;
}
protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context)
public MissingMemberException()
: base(SR.Arg_MissingMemberException)
{
- SetErrorCode(__HResults.COR_E_MISSINGMEMBER);
+ HResult = __HResults.COR_E_MISSINGMEMBER;
}
public MissingMemberException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_MISSINGMEMBER);
+ HResult = __HResults.COR_E_MISSINGMEMBER;
}
public MissingMemberException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_MISSINGMEMBER);
+ HResult = __HResults.COR_E_MISSINGMEMBER;
}
protected MissingMemberException(SerializationInfo info, StreamingContext context) : base(info, context)
public MissingMethodException()
: base(SR.Arg_MissingMethodException)
{
- SetErrorCode(__HResults.COR_E_MISSINGMETHOD);
+ HResult = __HResults.COR_E_MISSINGMETHOD;
}
public MissingMethodException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_MISSINGMETHOD);
+ HResult = __HResults.COR_E_MISSINGMETHOD;
}
public MissingMethodException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_MISSINGMETHOD);
+ HResult = __HResults.COR_E_MISSINGMETHOD;
}
protected MissingMethodException(SerializationInfo info, StreamingContext context) : base(info, context)
public OperationCanceledException()
: base(SR.OperationCanceled)
{
- SetErrorCode(__HResults.COR_E_OPERATIONCANCELED);
+ HResult = __HResults.COR_E_OPERATIONCANCELED;
}
public OperationCanceledException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_OPERATIONCANCELED);
+ HResult = __HResults.COR_E_OPERATIONCANCELED;
}
public OperationCanceledException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_OPERATIONCANCELED);
+ HResult = __HResults.COR_E_OPERATIONCANCELED;
}
public OutOfMemoryException()
: base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory))
{
- SetErrorCode(__HResults.COR_E_OUTOFMEMORY);
+ HResult = __HResults.COR_E_OUTOFMEMORY;
}
public OutOfMemoryException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_OUTOFMEMORY);
+ HResult = __HResults.COR_E_OUTOFMEMORY;
}
public OutOfMemoryException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_OUTOFMEMORY);
+ HResult = __HResults.COR_E_OUTOFMEMORY;
}
protected OutOfMemoryException(SerializationInfo info, StreamingContext context) : base(info, context)
public MissingManifestResourceException()
: base(SR.Arg_MissingManifestResourceException)
{
- SetErrorCode(System.__HResults.COR_E_MISSINGMANIFESTRESOURCE);
+ HResult = System.__HResults.COR_E_MISSINGMANIFESTRESOURCE;
}
public MissingManifestResourceException(String message)
: base(message)
{
- SetErrorCode(System.__HResults.COR_E_MISSINGMANIFESTRESOURCE);
+ HResult = System.__HResults.COR_E_MISSINGMANIFESTRESOURCE;
}
public MissingManifestResourceException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(System.__HResults.COR_E_MISSINGMANIFESTRESOURCE);
+ HResult = System.__HResults.COR_E_MISSINGMANIFESTRESOURCE;
}
protected MissingManifestResourceException(SerializationInfo info, StreamingContext context) : base(info, context)
public MissingSatelliteAssemblyException()
: base(SR.MissingSatelliteAssembly_Default)
{
- SetErrorCode(System.__HResults.COR_E_MISSINGSATELLITEASSEMBLY);
+ HResult = System.__HResults.COR_E_MISSINGSATELLITEASSEMBLY;
}
public MissingSatelliteAssemblyException(String message)
: base(message)
{
- SetErrorCode(System.__HResults.COR_E_MISSINGSATELLITEASSEMBLY);
+ HResult = System.__HResults.COR_E_MISSINGSATELLITEASSEMBLY;
}
public MissingSatelliteAssemblyException(String message, String cultureName)
: base(message)
{
- SetErrorCode(System.__HResults.COR_E_MISSINGSATELLITEASSEMBLY);
+ HResult = System.__HResults.COR_E_MISSINGSATELLITEASSEMBLY;
_cultureName = cultureName;
}
public MissingSatelliteAssemblyException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(System.__HResults.COR_E_MISSINGSATELLITEASSEMBLY);
+ HResult = System.__HResults.COR_E_MISSINGSATELLITEASSEMBLY;
}
protected MissingSatelliteAssemblyException(SerializationInfo info, StreamingContext context) : base(info, context)
private RuntimeWrappedException(Object thrownObject)
: base(SR.RuntimeWrappedException)
{
- SetErrorCode(System.__HResults.COR_E_RUNTIMEWRAPPED);
+ HResult = System.__HResults.COR_E_RUNTIMEWRAPPED;
m_wrappedException = thrownObject;
}
public COMException()
: base(SR.Arg_COMException)
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
public COMException(String message)
: base(message)
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
public COMException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
public COMException(String message, int errorCode)
: base(message)
{
- SetErrorCode(errorCode);
+ HResult = errorCode;
}
protected COMException(SerializationInfo info, StreamingContext context) : base(info, context)
public ExternalException()
: base(SR.Arg_ExternalException)
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
public ExternalException(String message)
: base(message)
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
public ExternalException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
public ExternalException(String message, int errorCode)
: base(message)
{
- SetErrorCode(errorCode);
+ HResult = errorCode;
}
protected ExternalException(SerializationInfo info, StreamingContext context) : base(info, context)
public InvalidComObjectException()
: base(SR.Arg_InvalidComObjectException)
{
- SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT);
+ HResult = __HResults.COR_E_INVALIDCOMOBJECT;
}
public InvalidComObjectException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT);
+ HResult = __HResults.COR_E_INVALIDCOMOBJECT;
}
public InvalidComObjectException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT);
+ HResult = __HResults.COR_E_INVALIDCOMOBJECT;
}
protected InvalidComObjectException(SerializationInfo info, StreamingContext context) : base(info, context)
public InvalidOleVariantTypeException()
: base(SR.Arg_InvalidOleVariantTypeException)
{
- SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
+ HResult = __HResults.COR_E_INVALIDOLEVARIANTTYPE;
}
public InvalidOleVariantTypeException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
+ HResult = __HResults.COR_E_INVALIDOLEVARIANTTYPE;
}
public InvalidOleVariantTypeException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
+ HResult = __HResults.COR_E_INVALIDOLEVARIANTTYPE;
}
protected InvalidOleVariantTypeException(SerializationInfo info, StreamingContext context) : base(info, context)
public MarshalDirectiveException()
: base(SR.Arg_MarshalDirectiveException)
{
- SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE);
+ HResult = __HResults.COR_E_MARSHALDIRECTIVE;
}
public MarshalDirectiveException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE);
+ HResult = __HResults.COR_E_MARSHALDIRECTIVE;
}
public MarshalDirectiveException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE);
+ HResult = __HResults.COR_E_MARSHALDIRECTIVE;
}
protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context)
public SEHException()
: base()
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
public SEHException(String message)
: base(message)
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
public SEHException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.E_FAIL);
+ HResult = __HResults.E_FAIL;
}
protected SEHException(SerializationInfo info, StreamingContext context) : base(info, context)
public SafeArrayRankMismatchException()
: base(SR.Arg_SafeArrayRankMismatchException)
{
- SetErrorCode(__HResults.COR_E_SAFEARRAYRANKMISMATCH);
+ HResult = __HResults.COR_E_SAFEARRAYRANKMISMATCH;
}
public SafeArrayRankMismatchException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_SAFEARRAYRANKMISMATCH);
+ HResult = __HResults.COR_E_SAFEARRAYRANKMISMATCH;
}
public SafeArrayRankMismatchException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_SAFEARRAYRANKMISMATCH);
+ HResult = __HResults.COR_E_SAFEARRAYRANKMISMATCH;
}
protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)
public SafeArrayTypeMismatchException()
: base(SR.Arg_SafeArrayTypeMismatchException)
{
- SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH);
+ HResult = __HResults.COR_E_SAFEARRAYTYPEMISMATCH;
}
public SafeArrayTypeMismatchException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH);
+ HResult = __HResults.COR_E_SAFEARRAYTYPEMISMATCH;
}
public SafeArrayTypeMismatchException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH);
+ HResult = __HResults.COR_E_SAFEARRAYTYPEMISMATCH;
}
protected SafeArrayTypeMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)
public SerializationException()
: base(_nullMessage)
{
- SetErrorCode(__HResults.COR_E_SERIALIZATION);
+ HResult = __HResults.COR_E_SERIALIZATION;
}
public SerializationException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_SERIALIZATION);
+ HResult = __HResults.COR_E_SERIALIZATION;
}
public SerializationException(String message, Exception innerException) : base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_SERIALIZATION);
+ HResult = __HResults.COR_E_SERIALIZATION;
}
protected SerializationException(SerializationInfo info, StreamingContext context) : base(info, context)
public VerificationException()
: base(SR.Verification_Exception)
{
- SetErrorCode(__HResults.COR_E_VERIFICATION);
+ HResult = __HResults.COR_E_VERIFICATION;
}
public VerificationException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_VERIFICATION);
+ HResult = __HResults.COR_E_VERIFICATION;
}
public VerificationException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_VERIFICATION);
+ HResult = __HResults.COR_E_VERIFICATION;
}
protected VerificationException(SerializationInfo info, StreamingContext context) : base(info, context)
public DecoderFallbackException()
: base(SR.Arg_ArgumentException)
{
- SetErrorCode(__HResults.COR_E_ARGUMENT);
+ HResult = __HResults.COR_E_ARGUMENT;
}
public DecoderFallbackException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_ARGUMENT);
+ HResult = __HResults.COR_E_ARGUMENT;
}
public DecoderFallbackException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_ARGUMENT);
+ HResult = __HResults.COR_E_ARGUMENT;
}
internal DecoderFallbackException(SerializationInfo info, StreamingContext context) : base(info, context)
public EncoderFallbackException()
: base(SR.Arg_ArgumentException)
{
- SetErrorCode(__HResults.COR_E_ARGUMENT);
+ HResult = __HResults.COR_E_ARGUMENT;
}
public EncoderFallbackException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_ARGUMENT);
+ HResult = __HResults.COR_E_ARGUMENT;
}
public EncoderFallbackException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_ARGUMENT);
+ HResult = __HResults.COR_E_ARGUMENT;
}
internal EncoderFallbackException(SerializationInfo info, StreamingContext context) : base(info, context)
public AbandonedMutexException()
: base(SR.Threading_AbandonedMutexException)
{
- SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX);
+ HResult = __HResults.COR_E_ABANDONEDMUTEX;
}
public AbandonedMutexException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX);
+ HResult = __HResults.COR_E_ABANDONEDMUTEX;
}
public AbandonedMutexException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX);
+ HResult = __HResults.COR_E_ABANDONEDMUTEX;
}
public AbandonedMutexException(int location, WaitHandle handle)
: base(SR.Threading_AbandonedMutexException)
{
- SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX);
+ HResult = __HResults.COR_E_ABANDONEDMUTEX;
SetupException(location, handle);
}
public AbandonedMutexException(String message, int location, WaitHandle handle)
: base(message)
{
- SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX);
+ HResult = __HResults.COR_E_ABANDONEDMUTEX;
SetupException(location, handle);
}
public AbandonedMutexException(String message, Exception inner, int location, WaitHandle handle)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX);
+ HResult = __HResults.COR_E_ABANDONEDMUTEX;
SetupException(location, handle);
}
public SynchronizationLockException()
: base(SR.Arg_SynchronizationLockException)
{
- SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
+ HResult = __HResults.COR_E_SYNCHRONIZATIONLOCK;
}
public SynchronizationLockException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
+ HResult = __HResults.COR_E_SYNCHRONIZATIONLOCK;
}
public SynchronizationLockException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
+ HResult = __HResults.COR_E_SYNCHRONIZATIONLOCK;
}
protected SynchronizationLockException(SerializationInfo info, StreamingContext context) : base(info, context)
public ThreadInterruptedException()
: base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadInterrupted))
{
- SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
+ HResult = __HResults.COR_E_THREADINTERRUPTED;
}
public ThreadInterruptedException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
+ HResult = __HResults.COR_E_THREADINTERRUPTED;
}
public ThreadInterruptedException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
+ HResult = __HResults.COR_E_THREADINTERRUPTED;
}
protected ThreadInterruptedException(SerializationInfo info, StreamingContext context) : base(info, context)
private ThreadStartException()
: base(SR.Arg_ThreadStartException)
{
- SetErrorCode(__HResults.COR_E_THREADSTART);
+ HResult = __HResults.COR_E_THREADSTART;
}
private ThreadStartException(Exception reason)
: base(SR.Arg_ThreadStartException, reason)
{
- SetErrorCode(__HResults.COR_E_THREADSTART);
+ HResult = __HResults.COR_E_THREADSTART;
}
//required for serialization
public ThreadStateException()
: base(SR.Arg_ThreadStateException)
{
- SetErrorCode(__HResults.COR_E_THREADSTATE);
+ HResult = __HResults.COR_E_THREADSTATE;
}
public ThreadStateException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_THREADSTATE);
+ HResult = __HResults.COR_E_THREADSTATE;
}
public ThreadStateException(String message, Exception innerException)
: base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_THREADSTATE);
+ HResult = __HResults.COR_E_THREADSTATE;
}
protected ThreadStateException(SerializationInfo info, StreamingContext context) : base(info, context)
{
public WaitHandleCannotBeOpenedException() : base(SR.Threading_WaitHandleCannotBeOpenedException)
{
- SetErrorCode(__HResults.COR_E_WAITHANDLECANNOTBEOPENED);
+ HResult = __HResults.COR_E_WAITHANDLECANNOTBEOPENED;
}
public WaitHandleCannotBeOpenedException(String message) : base(message)
{
- SetErrorCode(__HResults.COR_E_WAITHANDLECANNOTBEOPENED);
+ HResult = __HResults.COR_E_WAITHANDLECANNOTBEOPENED;
}
public WaitHandleCannotBeOpenedException(String message, Exception innerException) : base(message, innerException)
{
- SetErrorCode(__HResults.COR_E_WAITHANDLECANNOTBEOPENED);
+ HResult = __HResults.COR_E_WAITHANDLECANNOTBEOPENED;
}
protected WaitHandleCannotBeOpenedException(SerializationInfo info, StreamingContext context) : base(info, context)
public TypeLoadException()
: base(SR.Arg_TypeLoadException)
{
- SetErrorCode(__HResults.COR_E_TYPELOAD);
+ HResult = __HResults.COR_E_TYPELOAD;
}
public TypeLoadException(String message)
: base(message)
{
- SetErrorCode(__HResults.COR_E_TYPELOAD);
+ HResult = __HResults.COR_E_TYPELOAD;
}
public TypeLoadException(String message, Exception inner)
: base(message, inner)
{
- SetErrorCode(__HResults.COR_E_TYPELOAD);
+ HResult = __HResults.COR_E_TYPELOAD;
}
public override String Message
int resourceId)
: base(null)
{
- SetErrorCode(__HResults.COR_E_TYPELOAD);
+ HResult = __HResults.COR_E_TYPELOAD;
ClassName = className;
AssemblyName = assemblyName;
MessageArg = messageArg;