diff --git a/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/Marc21Encoder.java b/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/Marc21Encoder.java index fb8ad50b..c1f027d3 100644 --- a/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/Marc21Encoder.java +++ b/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/Marc21Encoder.java @@ -170,7 +170,7 @@ public void startEntity(final String name) { private void startField(final String name) { if (name.length() != NAME_LENGTH) { - throw new FormatException("invalid entity name: " + name); + throw new FormatException("invalid leader entity name: " + name); } final char[] tag = new char[RecordFormat.TAG_LENGTH]; final char[] indicators = new char[Marc21Constants.MARC21_FORMAT.getIndicatorLength()]; @@ -227,7 +227,7 @@ private void processLeaderAsOneLiteral(final String value) { private void processLeaderAsSubfields(final String name, final String value) { if (value.length() != 1) { throw new FormatException( - "literal must only contain a single character:" + name); + "leader literal must only contain a single character:" + name); } processLeaderAsSubfields(name, value.charAt(0)); } @@ -278,7 +278,7 @@ private void requireValidCode(final char code, final char[] validCodes) { return; } } - throw new FormatException("invalid code '" + code + "'; allowed codes are: " + Arrays.toString(validCodes)); + throw new FormatException("invalid code in leader'" + code + "'; allowed codes are: " + Arrays.toString(validCodes)); } }