On 5/15/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote:
> Could you simplify the code you were using and take out the if()
> statement, or at least log which branch is being taken?
>

What if statement?  I got the error message even when all the request
subclass contains is the new() method from the subclassing
documentation.

We are using Perl 5.6.1.

 - Ian

package RTK::Util::Mason::ErrorHandlerRequest;

use strict;

use base 'HTML::Mason::Request';

  sub new
  {
      my $class = shift;

      $class->alter_superclass( $HTML::Mason::ApacheHandler::VERSION ?
                                'HTML::Mason::Request::ApacheHandler' :
                                $HTML::Mason::CGIHandler::VERSION ?
                                'HTML::Mason::Request::CGI' :
                                'HTML::Mason::Request' );

      my $self = $class->SUPER::new(@_);

      return $self;
  }

1;

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to