Skip to content

Package: MissingIdentifierException

MissingIdentifierException

nameinstructionbranchcomplexitylinemethod
MissingIdentifierException(String)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
create(Object)
M: 0 C: 14
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: package cz.cvut.kbss.jsonld.exception;
2:
3: /**
4: * Indicates that the serializer encountered an instance without an identifier and it was configured to require identifier presence.
5: *
6: * @see cz.cvut.kbss.jsonld.ConfigParam#REQUIRE_ID
7: */
8: public class MissingIdentifierException extends JsonLdSerializationException {
9:
10: public MissingIdentifierException(String message) {
11: super(message);
12: }
13:
14: public static MissingIdentifierException create(Object instance) {
15: return new MissingIdentifierException(
16: "Instance " + instance + " is missing an identifier. Either it has no @Id field or its value is null.");
17: }
18: }