|
NAMEAstro::App::Satpass2::Warner - Output warning and error messagesSYNOPSISuse Astro::App::Satpass2::Warner my $warner = Astro::App::Satpass2::Warner->new(); $warner->whinge( 'This is a warning, or a carp' ); $warner->wail( 'This is a die, or a croak' ); DESCRIPTIONThis class is private to the "Astro::App::Satpass2" package. The author reserves the right to modify or revoke it without notice. The documentation is purely for the benefit of the author.This class manages the reporting of error messages, generating them by either "warn" and "die", or "carp" and "croak" as the user desires. If the "warn" attribute is true, you get "warn" or "die". If false, you get "carp" or "croak". METHODSThis class supports the following public methods:newThis static method instantiates an "Astro::App::Satpass2::Warner" object. It takes as arguments name/value pairs which will be passed to the relevant subroutine. It is probably only useful to set "warning".wailThis method concatenates all its arguments, and passes them to "die" (if the "warn" attribute is true) or "croak" (if the "warn" attribute is false).warningIf called without an argument, this method returns the value of the "warning" attribute. If called with an argument, it sets the value of the "warning" attribute.The initial value of the attribute is false. weepThis method concatenates all its arguments, prefixes 'Programming Error - ', and passes them to "Carp::confess()".whingeThis method concatenates all its arguments, and passes them to "warn" (if the "warn" attribute is true) or "carp" (if the "warn" attribute is false).Nothing is returned. SUPPORTSupport is by the author. Please file bug reports at <https://rt.cpan.org/Public/Dist/Display.html?Name=Astro-App-Satpass2>, <https://github.com/trwyant/perl-Astro-App-Satpass2/issues>, or in electronic mail to the author.AUTHORThomas R. Wyant, III wyant at cpan dot orgCOPYRIGHT AND LICENSECopyright (C) 2011-2021 by Thomas R. Wyant, IIIThis program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES. This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
Visit the GSP FreeBSD Man Page Interface. |