Convenience Method and Description
Arguments
GetErrorCode
This method returns the current value of the internal error code,
$err_code, from the Perl Library. This allows graceful exiting of
command handlers when errors occur. Possible values are:
0 = No error 1 = Data error 2 = IO error 3 = Exit code 4 = No
data 9 = Fatal error
An example use of the GetErrorCode method is as follows:
if ($obj->GetErrorCode () == 9) {
printf STDERR "Error found. Exiting"
return;
}
See also: DataError( ), IOError( ), Exit( )
No arguments
Debug Logging Methods
The following table lists the debug logging methods, briefly
describing their usage and arguments.
Debug Logging Method and Description
Arguments
SetLogFileName
This method sets the name to use for debug logging by UaTk. By
default, the log file name is UaTk.log. This method must be used
before calling the UaTkMain method.
$fname - string
GetLogFileName
This method returns a string containing the current log file name
in use.
No arguments
SetErrFileName
This method sets the name to use for error logging by UaTk. By
default, the error file name is UaTk.log. This method must be used
before calling the UaTkMain method.
$fname - string
GetErrFileName
This method returns a string containing the current error file name
in use.
No arguments
Developing Your Application in Perl
68
User Administration Version 3.8