public FileLoadException (string message, string fileName, Exception inner)
: base (message, inner)
{
- this.msg = message
- this.fileName = fileName
+ this.msg = message;
+ this.fileName = fileName;
this.inner = inner;
}
get {
if (fileName != null)
return Locale.GetText (msg + ": " + fileName);
-
- if (fileName == null)
+ else
return msg;
}
}
info.AddValue ("FileLoad_FusionLog", fusionLog);
}
- [MonoTODO (Add StackTrace into the output)]
public override string ToString ()
{
- return "System.IO.FileLoadException: " + Message;
+ string result = GetType ().FullName + ": " + Message;
+ if (this.InnerException != null)
+ result +=" ----> " + InnerException;
+ if (this.StackTrace != null)
+ result += '\n' + StackTrace;
+
+ return result;
}
-
}
}