Package: MissingIdentifierException
MissingIdentifierException
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MissingIdentifierException(String) |
|
|
|
|
|
||||||||||||||||||||
create(Object) |
|
|
|
|
|
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: }