NAME

Apache2::WebApp::Base - Base class implementing common functionality

SYNOPSIS

  use base 'Apache2::WebApp::Base';

DESCRIPTION

Base class module that implements a constructor and provides error reporting functionality for various WebApp Toolkit modules and scripts.

OBJECT METHODS

new

General object constructor.

  my $obj = Apache2::WebApp::Base->new({
      param1 => 'foo',
      param2 => 'bar',
      ...
    });

  print $obj->{param1};     # bar is the value of 'param1'
  print $obj->{param2};     # foo is the value of 'param2'

version

Returns the package version number.

  my $version = $self->version();

error

Output errors/exceptions and exit.

  $self->error($mesg);

SEE ALSO

Apache2::WebApp

AUTHOR

Marc S. Brooks, <mbrooks@cpan.org> http://mbrooks.info

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html