Add UnauthorizedBootImage and UnsupportedPlatform exceptions

This commit is contained in:
timoxa0 2024-05-16 23:27:44 +05:00
parent 36773eab2d
commit fdad3b80b2

View file

@ -1,4 +1,10 @@
class FastbootException(Exception):
def __init__(self, message, output):
super().__init__(message)
self.output = output
class UnauthorizedBootImage(FastbootException):
pass
@ -8,3 +14,9 @@ class DeviceNotFound(Exception):
class RepartitonError(Exception):
pass
class UnsupportedPlatform(Exception):
def __init__(self, platform):
super().__init__(f"{platform} is not supported")
self.platform = platform