Show
Ignore:
Timestamp:
12/09/08 14:56:58 (4 years ago)
Author:
tokuhirom
Message:

support HTTP::Engine

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/CGI-ExceptionManager/branches/he/lib/CGI/ExceptionManager.pm

    r26179 r26183  
    2020            undef $err_info; 
    2121        } else { 
    22             unless ($stacktrace_required) { 
    23                 require CGI::ExceptionManager::StackTrace; 
    24                 $stacktrace_required = 1; 
     22            my $st_class = 'CGI::ExceptionManager::StackTrace::' . ($args{stacktrace_class} || 'CGI'); 
     23            unless ($stacktrace_required->{$st_class}) { 
     24                (my $s = "$st_class\.pm") =~ s!::!/!g; 
     25                require $s; 
     26                $stacktrace_required->{$st_class} = 1; 
    2527            } 
    26             $err_info = CGI::ExceptionManager::StackTrace->new($msg); 
     28            $err_info = $st_class->new($msg); 
    2729        } 
    2830        die $msg; 
     
    3436    }; 
    3537    if ($err_info) { 
    36         $err_info->output( 
     38        $response = $err_info->output( 
    3739            powered_by => $args{powered_by} || __PACKAGE__, 
    3840            ($args{renderer} ? (renderer => $args{renderer}) : ())