This manual page is for Mac OS X version 10.6

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



CPANPLUS::Error(3pm)                  Perl Programmers Reference Guide                  CPANPLUS::Error(3pm)



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.



perl v5.10.0                                     2007-12-18                             CPANPLUS::Error(3pm)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Perl project. (See perlbug(1) for submission instructions.)
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Perl project using perlbug(1).
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.