public partial class BadImageFormatException
{
// Do not delete: this is invoked from native code.
- private BadImageFormatException(string? fileName, string? fusionLog, int hResult)
+ private BadImageFormatException(string? fileName, int hResult)
: base(null)
{
HResult = hResult;
_fileName = fileName;
- _fusionLog = fusionLog;
SetMessageField();
}
}
public partial class FileLoadException
{
// Do not delete: this is invoked from native code.
- private FileLoadException(string? fileName, string? fusionLog, int hResult)
+ private FileLoadException(string? fileName, int hResult)
: base(null)
{
HResult = hResult;
FileName = fileName;
- FusionLog = fusionLog;
_message = FormatFileLoadExceptionMessage(FileName, HResult);
}
public partial class FileNotFoundException
{
// Do not delete: this is invoked from native code.
- private FileNotFoundException(string? fileName, string? fusionLog, int hResult)
+ private FileNotFoundException(string? fileName, int hResult)
: base(null)
{
HResult = hResult;
FileName = fileName;
- FusionLog = fusionLog;
SetMessageField();
}
}
{
StackSString name;
pSpec->GetFileOrDisplayName(0, name);
- pEx=new EEFileLoadException(name, pEx->GetHR(), NULL, pEx);
+ pEx=new EEFileLoadException(name, pEx->GetHR(), pEx);
AddExceptionToCache(pSpec, pEx);
PAL_CPP_THROW(Exception *, pEx);
}
// EEFileLoadException is an EE exception subclass representing a file loading
// error
// ---------------------------------------------------------------------------
-EEFileLoadException::EEFileLoadException(const SString &name, HRESULT hr, void *pFusionLog, Exception *pInnerException/* = NULL*/)
+EEFileLoadException::EEFileLoadException(const SString &name, HRESULT hr, Exception *pInnerException/* = NULL*/)
: EEException(GetFileLoadKind(hr)),
m_name(name),
- m_pFusionLog(pFusionLog),
m_hr(hr)
{
CONTRACTL
}
CONTRACTL_END;
- // Fetch any log info from the fusion log
- SString logText;
struct _gc {
OBJECTREF pNewException;
STRINGREF pNewFileString;
- STRINGREF pFusLogString;
} gc;
ZeroMemory(&gc, sizeof(gc));
GCPROTECT_BEGIN(gc);
gc.pNewFileString = StringObject::NewString(m_name);
- gc.pFusLogString = StringObject::NewString(logText);
gc.pNewException = AllocateObject(MscorlibBinder::GetException(m_kind));
MethodDesc* pMD = MemberLoader::FindMethod(gc.pNewException->GetMethodTable(),
- COR_CTOR_METHOD_NAME, &gsig_IM_Str_Str_Int_RetVoid);
+ COR_CTOR_METHOD_NAME, &gsig_IM_Str_Int_RetVoid);
if (!pMD)
{
ARG_SLOT args[] = {
ObjToArgSlot(gc.pNewException),
ObjToArgSlot(gc.pNewFileString),
- ObjToArgSlot(gc.pFusLogString),
(ARG_SLOT) m_hr
};
private:
SString m_name;
- void *m_pFusionLog;
HRESULT m_hr;
-
public:
- EEFileLoadException(const SString &name, HRESULT hr, void *pFusionLog = NULL, Exception *pInnerException = NULL);
+ EEFileLoadException(const SString &name, HRESULT hr, Exception *pInnerException = NULL);
~EEFileLoadException();
// virtual overrides
virtual Exception *CloneHelper()
{
WRAPPER_NO_CONTRACT;
- return new EEFileLoadException(m_name, m_hr, m_pFusionLog);
+ return new EEFileLoadException(m_name, m_hr);
}
private:
#ifdef _DEBUG
- EEFileLoadException() : m_pFusionLog(NULL)
+ EEFileLoadException()
{
// Used only for DebugIsEECxxExceptionPointer to get the vtable pointer.
// We need a variant which does not allocate memory.