Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\CPANPLUS\Error.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>../lib/CPANPLUS/Error.pm</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> ../lib/CPANPLUS/Error.pm</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#functions">FUNCTIONS</a></li> <ul> <li><a href="#cp_msg_message_string___verbose__">cp_msg("message string" [,VERBOSE])</a></li> <li><a href="#msg__"><code>msg()</code></a></li> <li><a href="#cp_error_error_string___verbose__">cp_error("error string" [,VERBOSE])</a></li> <li><a href="#error__"><code>error()</code></a></li> </ul> <li><a href="#class_methods">CLASS METHODS</a></li> <ul> <li><a href="#cpanplus__error__stack__">CPANPLUS::Error-><code>stack()</code></a></li> <li><a href="#cpanplus__error__stack_as_string__trace__">CPANPLUS::Error->stack_as_string([TRACE])</a></li> <li><a href="#cpanplus__error__flush__">CPANPLUS::Error-><code>flush()</code></a></li> </ul> <li><a href="#global_variables">GLOBAL VARIABLES</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <hr /> <h1><a name="name">NAME</a></h1> <p>CPANPLUS::Error</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> use CPANPLUS::Error qw[cp_msg cp_error];</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>This module provides the error handling code for the CPANPLUS libraries, and is mainly intended for internal use.</p> <p> </p> <hr /> <h1><a name="functions">FUNCTIONS</a></h1> <p> </p> <h2><a name="cp_msg_message_string___verbose__">cp_msg("message string" [,VERBOSE])</a></h2> <p>Records a message on the stack, and prints it to <code>STDOUT</code> (or actually <a href="#_msg_fh"><code>$MSG_FH</code></a>, see the <code>GLOBAL VARIABLES</code> section below), if the <code>VERBOSE</code> option is true. The <code>VERBOSE</code> option defaults to false.</p> <p> </p> <h2><a name="msg__"><code>msg()</code></a></h2> <p>An alias for <code>cp_msg</code>.</p> <p> </p> <h2><a name="cp_error_error_string___verbose__">cp_error("error string" [,VERBOSE])</a></h2> <p>Records an error on the stack, and prints it to <code>STDERR</code> (or actually <a href="#_error_fh"><code>$ERROR_FH</code></a>, see the <code>GLOBAL VARIABLES</code> sections below), if the <code>VERBOSE</code> option is true. The <code>VERBOSE</code> options defaults to true.</p> <p> </p> <h2><a name="error__"><code>error()</code></a></h2> <p>An alias for <code>cp_error</code>.</p> <p> </p> <hr /> <h1><a name="class_methods">CLASS METHODS</a></h1> <p> </p> <h2><a name="cpanplus__error__stack__">CPANPLUS::Error-><code>stack()</code></a></h2> <p>Retrieves all the items on the stack. Since <code>CPANPLUS::Error</code> is implemented using <code>Log::Message</code>, consult its manpage for the function <code>retrieve</code> to see what is returned and how to use the items.</p> <p> </p> <h2><a name="cpanplus__error__stack_as_string__trace__">CPANPLUS::Error->stack_as_string([TRACE])</a></h2> <p>Returns the whole stack as a printable string. If the <code>TRACE</code> option is true all items are returned with <code>Carp::longmess</code> output, rather than just the message. <code>TRACE</code> defaults to false.</p> <p> </p> <h2><a name="cpanplus__error__flush__">CPANPLUS::Error-><code>flush()</code></a></h2> <p>Removes all the items from the stack and returns them. Since <code>CPANPLUS::Error</code> is implemented using <code>Log::Message</code>, consult its manpage for the function <code>retrieve</code> to see what is returned and how to use the items.</p> <p> </p> <hr /> <h1><a name="global_variables">GLOBAL VARIABLES</a></h1> <dl> <dt><strong><a name="_error_fh" class="item">$ERROR_FH</a></strong> <dd> <p>This is the filehandle all the messages sent to <code>error()</code> are being printed. This defaults to <code>*STDERR</code>.</p> </dd> </li> <dt><strong><a name="_msg_fh" class="item">$MSG_FH</a></strong> <dd> <p>This is the filehandle all the messages sent to <code>msg()</code> are being printed. This default to <code>*STDOUT</code>.</p> </dd> </dl> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> ../lib/CPANPLUS/Error.pm</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de