diff --git a/lon_deployer/exceptions.py b/lon_deployer/exceptions.py index a908eb0..7daf1b1 100644 --- a/lon_deployer/exceptions.py +++ b/lon_deployer/exceptions.py @@ -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