Add UnauthorizedBootImage and UnsupportedPlatform exceptions
This commit is contained in:
parent
36773eab2d
commit
fdad3b80b2
|
@ -1,4 +1,10 @@
|
||||||
class FastbootException(Exception):
|
class FastbootException(Exception):
|
||||||
|
def __init__(self, message, output):
|
||||||
|
super().__init__(message)
|
||||||
|
self.output = output
|
||||||
|
|
||||||
|
|
||||||
|
class UnauthorizedBootImage(FastbootException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,3 +14,9 @@ class DeviceNotFound(Exception):
|
||||||
|
|
||||||
class RepartitonError(Exception):
|
class RepartitonError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class UnsupportedPlatform(Exception):
|
||||||
|
def __init__(self, platform):
|
||||||
|
super().__init__(f"{platform} is not supported")
|
||||||
|
self.platform = platform
|
||||||
|
|
Reference in a new issue