Add libminetest.errors.UnsupportedMapBlockError
- Pretty explicit - For use in #16 per @guyou's idea
This commit is contained in:
parent
8bac60aedc
commit
3d819092e5
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user