The SetErrorCallback method registers a user-defined Perl subroutine that processes SiteMinder error messages. If multiple subroutines are registered, SiteMinder calls the most recently registered subroutine.
Syntax
The SetErrorCallback method has the following format:
Netegrity::AgentAPI‑>SetErrorCallback(subref)
Parameters
The SetErrorCallback method accepts the following parameter:
subref (string)
Specifies the name of the Perl subroutine or a reference to the subroutine:
Example:
$agentapi‑>SetErrorCallback("CustomErrorHandler");
Example:
$agentapi‑>SetErrorCallback(\&CustomErrorHandler);
Return Value
The SetErrorCallback method returns one of the following integer values:
Specifies that registration was successful.
Specifies that registration failed.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |