FirmaSAT  10.50.0
Static Public Member Functions | List of all members
firmasat::Err Class Reference

Details of errors returned by the core library. More...

Static Public Member Functions

static std::string ErrorLookup (int errCode)
 Look up description for error code. More...
 
static std::string FormatErrorMessage (int errCode=0)
 Return an error message string for the last error. More...
 
static std::string LastError ()
 Retrieve the last error message (if available). More...
 

Detailed Description

Details of errors returned by the core library.

Member Function Documentation

◆ ErrorLookup()

static std::string firmasat::Err::ErrorLookup ( int  errCode)
static

Look up description for error code.

Parameters
errCodeCode number (may be positive or negative)
Returns
Corresponding error message.

◆ FormatErrorMessage()

static std::string firmasat::Err::FormatErrorMessage ( int  errCode = 0)
static

Return an error message string for the last error.

Parameters
errCodeError code returned by last call.
Returns
Error message as a string Error ({errCode}): {errorlookup}[: {lasterror}]
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

◆ LastError()

static std::string firmasat::Err::LastError ( )
static

Retrieve the last error message (if available).

Returns
Error message from last call (may be empty).
Remarks
Call this immediately when an error is detected. Calling another method will overwrite the message.
Copyright © 2006-22 D.I. Management Services Pty Limited ABN 78 083 210 584 Australia. All rights reserved. <www.di-mgt.com.au> <www.cryptosys.net>. Generated on Sat Mar 12 2022 21:02:20 by Doxygen 1.9.1.