httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Vanasco <>
Subject feature request - error code ( not string ) in perl glue
Date Wed, 25 Apr 2007 23:38:41 GMT
Currently , on error, the following return string error messages:


i'd like to suggest the following change:

	new module Apache2::Request::Constants

		operates in the same manner as Apache2::Const

	an optional parameter returns a tuple/list of ( $string_error ,  
$const_code )
	without the parameter, the current functionality remains , so its  
fully backwards compatible.




	matching string errors is really ugly

	to replace this:
		my  $error= $apr->body_status();
		if ( $error eq 'Exceeds configured maximum limit' )

	with something like this:
		my  ($code,$error)= $apr->body_status(1);
		if ( $code == APR::Const::EXCEEDED_MAXIMUM )

View raw message