Add libminetest.errors.UnsupportedMapBlockError

- Pretty explicit
 - For use in #16 per @guyou's idea
This commit is contained in:
LeMagnesium 2018-02-10 15:54:33 +01:00
parent 8bac60aedc
commit 3d819092e5
No known key found for this signature in database
GPG Key ID: A54DDB5272C51E8B

View File

@ -17,6 +17,10 @@ class MapError(MinetestException):
"Generic map exception"
pass
class UnsupportedMapBlockError(MapError):
"Map is of a version beyond what we can use"
__cause__ = "The version of that MapBlock is higher than our currently supported version"
class EmptyMapVesselError(MinetestException):
"Exception raised when one tries using a MapVessel without loading any database in first"
__cause__ = "Tried to use empty mapfile vessel"