Added exception handling.
parent
ca595e2779
commit
6361bb7664
|
@ -142,6 +142,8 @@ namespace OpenSim.UserServer
|
|||
} // LoginServer
|
||||
|
||||
public void SetDefaultValues()
|
||||
{
|
||||
try
|
||||
{
|
||||
this.DST = "N";
|
||||
this.StipendSinceLogin = "N";
|
||||
|
@ -201,11 +203,18 @@ namespace OpenSim.UserServer
|
|||
this.agentInventory.Add(TempHash);
|
||||
}
|
||||
|
||||
|
||||
Hashtable InitialOutfitHash = new Hashtable();
|
||||
InitialOutfitHash["folder_name"] = "Nightclub Female";
|
||||
InitialOutfitHash["gender"] = "female";
|
||||
this.initialOutfit.Add(InitialOutfitHash);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(
|
||||
OpenSim.Framework.Console.LogPriority.LOW,
|
||||
"LoginResponse: Unable to set default values: " + e.Message
|
||||
);
|
||||
}
|
||||
|
||||
} // SetDefaultValues
|
||||
|
||||
|
@ -251,6 +260,9 @@ namespace OpenSim.UserServer
|
|||
|
||||
public XmlRpcResponse ToXmlRpcResponse()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Hashtable responseData = new Hashtable();
|
||||
|
||||
this.loginFlagsHash = new Hashtable();
|
||||
|
@ -311,6 +323,16 @@ namespace OpenSim.UserServer
|
|||
this.xmlRpcResponse.Value = responseData;
|
||||
|
||||
return (this.xmlRpcResponse);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(
|
||||
OpenSim.Framework.Console.LogPriority.LOW,
|
||||
"LoginResponse: Error creating XML-RPC Response: " + e.Message
|
||||
);
|
||||
return (this.GenerateFailureResponse("Internal Error", "Error generating Login Response", "false"));
|
||||
|
||||
}
|
||||
|
||||
} // ToXmlRpcResponse
|
||||
|
||||
|
|
Loading…
Reference in New Issue