diff --git a/Makefile b/Makefile index 26bb163fb61e26f6a053ab831fbc24e2b8a9c091..03f3d64012395fa67e26cd03dd0575485cae46f8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PROJECT = yangson -VERSION = 1.3.10 +VERSION = 1.3.11 .PHONY = tags deps install-deps test tags: diff --git a/yangson/exceptions.py b/yangson/exceptions.py index 0a08d1ae6a2527ffc6e93f4e3821c61041262fb3..9f20701b406ba68a0c2b5d90cd8be83ed4d3e13d 100644 --- a/yangson/exceptions.py +++ b/yangson/exceptions.py @@ -280,11 +280,11 @@ class InvalidLeafrefPath(SchemaNodeException): class RawDataError(YangsonException): """Abstract exception class for errors in raw data.""" - def __init__(self, jptr: JSONPointer): - self.jptr = jptr + def __init__(self, path: JSONPointer): + self.path = path def __str__(self) -> JSONPointer: - return self.jptr + return self.path class RawMemberError(RawDataError): """Object member in the raw value doesn't exist in the schema.""" @@ -293,12 +293,12 @@ class RawMemberError(RawDataError): class RawTypeError(RawDataError): """Raw value is of an incorrect type.""" - def __init__(self, jptr: JSONPointer, expected: str): - super().__init__(jptr) + def __init__(self, path: JSONPointer, expected: str): + super().__init__(path) self.expected = expected def __str__(self): - return "[{}] expected {}".format(self.jptr, self.expected) + return "[{}] expected {}".format(self.path, self.expected) class ValidationError(YangsonException): """Abstract exception class for instance validation errors."""