• Aucun résultat trouvé

CLASS METHODS

N/A
N/A
Protected

Academic year: 2022

Partager "CLASS METHODS"

Copied!
1
0
0

Texte intégral

(1)

Perl version 5.10.0 documentation - CPANPLUS::Error

Page 1 http://perldoc.perl.org

NAME

CPANPLUS::Error

SYNOPSIS

use CPANPLUS::Error qw[cp_msg cp_error];

DESCRIPTION

This module provides the error handling code for the CPANPLUS libraries, and is mainly intended for internal use.

FUNCTIONS

cp_msg("message string" [,VERBOSE])

Records a message on the stack, and prints it to STDOUT (or actually $MSG_FH, see the GLOBAL VARIABLES section below), if the VERBOSE option is true. The VERBOSE option defaults to false.

msg()

An alias for cp_msg.

cp_error("error string" [,VERBOSE])

Records an error on the stack, and prints it to STDERR (or actually $ERROR_FH, see the GLOBAL VARIABLES sections below), if the VERBOSE option is true. The VERBOSE options defaults to true.

error()

An alias for cp_error.

CLASS METHODS

CPANPLUS::Error->stack()

Retrieves all the items on the stack. Since CPANPLUS::Error is implemented using Log::Message , consult its manpage for the function retrieve to see what is returned and how to use the items.

CPANPLUS::Error->stack_as_string([TRACE])

Returns the whole stack as a printable string. If the TRACE option is true all items are returned with Carp::longmess output, rather than just the message. TRACE defaults to false.

CPANPLUS::Error->flush()

Removes all the items from the stack and returns them. Since CPANPLUS::Error is implemented using Log::Message, consult its manpage for the function retrieve to see what is returned and how to use the items.

GLOBAL VARIABLES

$ERROR_FH

This is the filehandle all the messages sent to error() are being printed. This defaults to

*STDERR.

$MSG_FH

This is the filehandle all the messages sent to msg() are being printed. This default to

*STDOUT.

Références

Documents relatifs

Records a debug message on the stack, and prints it to STDOUT (or actually $DEBUG_FH, see the GLOBAL VARIABLES section below), if the VERBOSE option is true.. The VERBOSE

Records a message on the stack, and prints it to STDOUT (or actually $HISTORY_FH, see the GLOBAL VARIABLES section below), if the VERBOSE option is true. The VERBOSE option defaults

Cette garantie ne s’applique pas aux produits Meubles South Shore qui ont fait l’objet d’un mauvais usage, de négligence, d’altération, de modification ou d’ajout, soit

The End-of-File control word causes input processing to revert to the file that invoked, the current imbed file.. If the current file was not imbedded,

When a big window opens up (that is, a missing datagram at the head of a 40 datagram send queue gets retransmitted and acked), the perceived round trip time for

If the server supports option negotiation, and it recognizes one or more of the options specified in the request packet, the server may respond with an Options

The Canadian Task Force on Preventive Health Care recommends screening adults 60 to 74 years of age for colorectal cancer (strong recommendation), but given the severe

We agree that family medicine training is too short and packed with too many additional projects, research, and exami- nations to realistically expect that residents