⧼vector-jumptocontent⧽

API:EPrints: Difference between revisions

From EPrints Documentation
No edit summary
No edit summary
Line 42: Line 42:
   EPrints::try( CODE_REF )
   EPrints::try( CODE_REF )


Attempts to call CODE_REF and if an error occurs calls {{API:PodLink|file=|package_name=|section=abort|text=/abort}} with the error message.
Attempts to call CODE_REF and if an error occurs calls [[#abort|/abort]] with the error message.


<!-- End of Pod2Wiki -->
<!-- End of Pod2Wiki -->

Revision as of 18:51, 11 August 2009

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki

NAME

EPrints - EPrints Software

SYNOPSIS

 use EPrints;
 
 my $session = EPrints::Session->new( 1, "xxx" );
 
 $session->terminate;
 

DESCRIPTION

EPrints is generic repository building software developed by the University of Southampton. It is intended to create a highly configurable web-based repository.

For more information on EPrints see http://www.eprints.org/software/.

METHODS

abort

 EPrints::abort( $msg )

Print an error message and exit. If running under mod_perl then print the error as a webpage and exit.

This subroutine is loaded before other modules so that it may be used to report errors when initialising modules.

deprecated

 EPrints::deprecated()

Prints a deprecated warning for the calling sub.

try

 EPrints::try( CODE_REF )

Attempts to call CODE_REF and if an error occurs calls /abort with the error message.

SEE ALSO

EPrints::Session, EPrints::Repository.

AUTHOR

Copyright 2000-2009 University of Southampton, UK.