Return an error message string for the last error.

Namespace:  FirmaSAT
Assembly:  diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.50.0.29531

Syntax

C#
public static string FormatErrorMessage(
	int errCode
)
Visual Basic (Declaration)
Public Shared Function FormatErrorMessage ( _
	errCode As Integer _
) As String

Parameters

errCode
Type: System..::.Int32
Error code returned by last call (optional)

Return Value

Error message as a string Error ({errCode}): {errorlookup}[: {lasterror}]

Examples

CopyC#
// Error (-28): XML restriction is violated/XML restriccion es violada (XML_FACET_ERROR):
// Bad attribute/atributo mal [iedu:instEducativas/@CURP] (line 30):
// 'JUAN01010101GTOHMD0' is too long/es demasiado largo, maximum length/longitud maxima=18

See Also