You are here

function File::_croak in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \File::_croak()
  2. 7 modules/marcParse/php-marc.php \File::_croak()
  3. 7.2 modules/marcParse/php-marc.php \File::_croak()

* Croaking function * * Similar to Perl's croak function, which ends parsing and raises an * user error with a descriptive message. *

Parameters

string The message to display:

1 call to File::_croak()
File::decode in marcParse/php-marc.php
* Decode a given raw MARC record * * "Port" of Andy Lesters MARC::File::USMARC->decode() function into PHP. Ideas and * "rules" have been used from USMARC::decode(). * *

File

marcParse/php-marc.php, line 109

Class

File
Class File Class to read MARC records from file(s)

Code

function _croak($msg) {
  trigger_error($msg, E_USER_ERROR);
}