You are here

function Record::_croak in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \Record::_croak()
  2. 7 modules/marcParse/php-marc.php \Record::_croak()
  3. 7.2 modules/marcParse/php-marc.php \Record::_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 Record::_croak()
Record::append_fields in marcParse/php-marc.php
* Append field to existing * * Given Field object will be appended to the existing list of fields. Field will be * appended last and not in its "correct" location. *

File

marcParse/php-marc.php, line 398

Class

Record
Record Class Create a MARC Record class

Code

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