Skip to main content

LogLastPIACEError Method

Logs the last error message generated by gSharp ACE library functions.

Definition​

Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)

C#

public static void LogLastPIACEError(
int errorNumber,
string errorLocation,
string errorDescription = "",
string errorExpression = ""
)

VB

Public Shared Sub LogLastPIACEError ( 
errorNumber As Integer,
errorLocation As String,
Optional errorDescription As String = "",
Optional errorExpression As String = ""
)

Parameters​

  Int32
Error number.
  String
Location where the error occurs.
  String  (Optional)
[Missing <param name="errorDescription"/> documentation for "M:GHost.GSharp.PI.ACE.PIACEBIFunctions.LogLastPIACEError(System.Int32,System.String,System.String,System.String)"]
  String  (Optional)
Offending expression causing error.

Example​

C#

LogLastPIACEError(-12034, "MyProgram.MySub", "Invalid number: Should be between 0 and 5", "intTest = 6")
ClearLastPIACEError()

See Also​

Reference​

PIACEBIFunctions Class
GHost.GSharp.PI.ACE Namespace