CLI-Framework
view release on metacpan or search on metacpan
lib/CLI/Framework/Application.pm view on Meta::CPAN
An application can specify exactly what input represents a request to end an
interactive session. By default, the example definition above is used.
=head2 handle_exception( $e )
sub handle_exception {
my ($app, $e) = @_;
# Handle the exception represented by object $e...
$app->my_error_logger( error => $e->error, pid => $e->pid, gid => $e->gid, ... );
warn "caught error ", $e->error, ", continuing...";
return;
}
Error conditions are caught by CLIF and forwarded to this exception handler.
It receives an exception object (see L<Exception::Class::Base> for methods
that can be called on the object).
If not overridden, the default implementation extracts the error message from
t/lib/My/PerlFunctions/Command/Summary.pm view on Meta::CPAN
exit - terminate this program
exp - raise I to a power
fcntl - file control system call
fileno - return file descriptor from filehandle
flock - lock an entire file with an advisory lock
fork - create a new process just like this one
format - declare a picture format with use by the write() function
formline - internal function used for formats
getc - get the next character from the filehandle
getgrent - get next group record
getgrgid - get group record given group user ID
getgrnam - get group record given group name
gethostbyaddr - get host record given its address
gethostbyname - get host record given name
gethostent - get next hosts record
getlogin - return who logged in at this tty
getnetbyaddr - get network record given its address
getnetbyname - get networks record given name
getnetent - get next networks record
getpeername - find the other end of a socket connection
getpgrp - get process group
( run in 1.368 second using v1.01-cache-2.11-cpan-5735350b133 )