You are here

public function Record::_croak in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \Record::_croak()
  2. 6 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 modules/marcParse/php-marc.php
Append field to existing.

File

modules/marcParse/php-marc.php, line 435
@package PHP-MARC

Class

Record
Record Class Create a MARC Record class.

Code

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