Package DE_EPAGES::Core::API::Script
This module provides error handling for scripts.
@EXPORT_OK |
Functions
HandleSignal
This function will be called when a signal (USR1, USR2, INT, QUIT) is received. It writes the current caller stack to the file $ENV{EPAGES_LOG}/usr.log. If the signal USR2 or INT is received the process will be terminated.
Syntax |
HandleSignal($signal) |
Input |
|
RunScript
Runs the main function in the context of the Error module and enables detailed error information.
Syntax |
RunScript(%Options); |
Example |
RunScript( Sub => \&Main, 'Message'=>'short'); |
Input |
|