Skip to content

Package: UnknownPropertyException

UnknownPropertyException

nameinstructionbranchcomplexitylinemethod
UnknownPropertyException(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(String, Class)
M: 0 C: 18
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: * Thrown when no JSON-LD serializable field matching a property IRI is found in a class.
5: */
6: public class UnknownPropertyException extends JsonLdDeserializationException {
7:
8: public UnknownPropertyException(String message) {
9: super(message);
10: }
11:
12: public static UnknownPropertyException create(String property, Class<?> cls) {
13: return new UnknownPropertyException(
14: "No field matching property " + property + " was found in class " + cls + " or its ancestors.");
15: }
16: }