| 1 | package Net::IMAP::Server::Error; | ||
| 2 | |||
| 3 | 13 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 13 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 13 | ▶ | use base qw/Net::IMAP::Server::Command/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Net::IMAP::Server::Error - A command which failed catastrophically | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | A subclass of L<Net::IMAP::Server::Command> used when the true command | ||
| 15 | fails to compile or load, for whatever reason. This is intentionally | ||
| 16 | not C<Net::IMAP::Server::Command::Error>, as that would make it | ||
| 17 | available to clients as the C<ERROR> command. | ||
| 18 | |||
| 19 | =head1 METHODS | ||
| 20 | |||
| 21 | =head2 run | ||
| 22 | |||
| 23 | Produces a server error. | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | sub run { | ||
| 28 | 0 | ▶ | my $self = shift; |
|
Subroutine
run: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | 0 | $self->no_command("Server error"); | |
| 31 | } | ||
| 32 | |||
| 33 | 13 | 1; | |