From fdad3b80b27c3ac6cd6e2bc52eaae31c6cb68bdc Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Thu, 16 May 2024 23:27:44 +0500 Subject: [PATCH] Add UnauthorizedBootImage and UnsupportedPlatform exceptions --- lon_deployer/exceptions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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