private function MarcEncoder::croak in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 modules/bibcite_marc/src/Encoder/MarcEncoder.php \Drupal\bibcite_marc\Encoder\MarcEncoder::croak()
Croaking function.
Similar to Perl's croak function, which ends parsing and raises an user error with a descriptive message.
Parameters
string $msg: The message to display.
1 call to MarcEncoder::croak()
- MarcEncoder::decodeFile in modules/
bibcite_marc/ src/ Encoder/ MarcEncoder.php - Decode a given raw MARC record.
File
- modules/
bibcite_marc/ src/ Encoder/ MarcEncoder.php, line 69
Class
- MarcEncoder
- Marc format encoder.
Namespace
Drupal\bibcite_marc\EncoderCode
private function croak($msg) {
trigger_error($msg, E_USER_ERROR);
}