Bundled Software Update Plugin
This commit is contained in:
1 parent
cd390a53af
commit
2e6240a910
18 files changed
+1690
No files matched your search
@@ -0,0 +1,37 @@
|
||||
# coding=utf-8
|
||||
from __future__ import absolute_import
|
||||
|
||||
__author__ = "Gina Häußge <osd@foosel.net>"
|
||||
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
|
||||
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
|
||||
|
||||
|
||||
class NoUpdateAvailable(Exception):
|
||||
pass
|
||||
|
||||
class UpdateAlreadyInProgress(Exception):
|
||||
pass
|
||||
|
||||
class UnknownUpdateType(Exception):
|
||||
pass
|
||||
|
||||
class UnknownCheckType(Exception):
|
||||
pass
|
||||
|
||||
class UpdateError(Exception):
|
||||
def __init__(self, message, data):
|
||||
self.message = message
|
||||
self.data = data
|
||||
|
||||
class ScriptError(Exception):
|
||||
def __init__(self, returncode, stdout, stderr):
|
||||
self.returncode = returncode
|
||||
self.stdout = stdout
|
||||
self.stderr = stderr
|
||||
|
||||
class RestartFailed(Exception):
|
||||
pass
|
||||
|
||||
class ConfigurationInvalid(Exception):
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user