internal virtual System.String getExceptionString(System.String exception)
{
System.String tmsg;
// Format the basic exception information
// Craft a string from the resouce file
System.String msg = ResourcesHandler.getMessage("TOSTRING", new System.Object[]{exception, base.Message, resultCode, resultCodeToString()});
// If found no string from resource file, use a default string
if (msg.ToUpper().Equals("TOSTRING".ToUpper()))
{
msg = exception + ": (" + resultCode + ") " + resultCodeToString();
}
// Add server message
if (((System.Object) serverMessage != null) && (serverMessage.Length != 0))
{
tmsg = ResourcesHandler.getMessage("SERVER_MSG", new System.Object[]{exception, serverMessage});
// If found no string from resource file, use a default string
if (tmsg.ToUpper().Equals("SERVER_MSG".ToUpper()))
{
tmsg = exception + ": Server Message: " + serverMessage;
}
msg = msg + '\n' + tmsg;
}
// Add Matched DN message
if ((System.Object) matchedDN != null)
{
tmsg = ResourcesHandler.getMessage("MATCHED_DN", new System.Object[]{exception, matchedDN});
// If found no string from resource file, use a default string
if (tmsg.ToUpper().Equals("MATCHED_DN".ToUpper()))
{
tmsg = exception + ": Matched DN: " + matchedDN;
}
msg = msg + '\n' + tmsg;
}
if (rootException != null)
{
msg = msg + '\n' + rootException.ToString();
}
return msg;
}