Files
mayan-edms/mayan/apps/dependencies/exceptions.py
Roberto Rosario ea3b513ae3 Add new app to handle all dependencies
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-05-03 01:12:20 -04:00

22 lines
502 B
Python

from __future__ import unicode_literals
class DependenciesException(Exception):
"""
Base exception for the dependencies app
"""
class NotLatestVersion(DependenciesException):
"""
The installed version is not the latest available version
"""
def __init__(self, upstream_version):
self.upstream_version = upstream_version
class UnknownLatestVersion(DependenciesException):
"""
It is not possible to determine what is the latest upstream version.
"""