Parameters
- message
- Type: System.String
An error message for send.
- way
- Type: System.String
An error "way" for send. The parameter "way" can be line in code, action ID or module.
The parameter "way" hasn't restrictions, it should use for specify the location where error was detected. This parameter can be empty.
The following example demonstrates using SendErrorToLog method.
| C# | Copy Code |
|---|---|
try { // get global variable IGlobalVariable gv = project.GlobalVariables["MyNamespace", "MyGlobalVariable"]; } catch (Exception e) { // send error to log project.SendErrorToLog(e.Message, "first action OwnCode C#"); } | |
| PHP | Copy Code |
|---|---|
try { // get global variable $gv = $project->GlobalVariables["MyNamespace", "MyGlobalVariable"]; } catch (Exception $e) { // send error to log $project->SendErrorToLog($e->Message, "first action OwnCode PHP"); } | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven