Beispiel #1
0
		private static string GetExceptionMessage(RhinoException ex)
		{
			string msg;
			if (ex is JavaScriptException)
			{
				msg = GetMessage("msg.uncaughtJSException", ex.Details());
			}
			else
			{
				if (ex is EcmaError)
				{
					msg = GetMessage("msg.uncaughtEcmaError", ex.Details());
				}
				else
				{
					if (ex is EvaluatorException)
					{
						msg = ex.Details();
					}
					else
					{
						msg = ex.ToString();
					}
				}
			}
			return msg;
		}