OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.Error C# (CSharp) Method

Error() private method

Reports the script error in the viewer's Script Warning/Error dialog and shouts it on the debug channel.
private Error ( string command, string message ) : void
command string The name of the command that generated the error.
message string The error message to report to the user.
return void
        internal void Error(string command, string message)
        {
            string text = command + ": " + message;
            if (text.Length > 1023)
            {
                text = text.Substring(0, 1023);
            }

            World.SimChat(Utils.StringToBytes(text), ChatTypeEnum.DebugChannel, ScriptBaseClass.DEBUG_CHANNEL,
                m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, false);

            IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
            if (wComm != null)
            {
                wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, text);
            }
        }
LSL_Api