You are here

private function MarcEncoder::croak in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x 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\Encoder

Code

private function croak($msg) {
  trigger_error($msg, E_USER_ERROR);
}