Files
mayan-edms/mayan/apps/common/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

39 lines
871 B
Python

from __future__ import unicode_literals
class BaseCommonException(Exception):
"""
Base exception for the common app
"""
pass
class ActionError(BaseCommonException):
"""
Raise by the MultiActionConfirmView to announce when the object action
failed for one or more items. This exception doesn't stop the iteration,
it is used to announce that one item in the queryset failed to process.
"""
class CompressionFileError(BaseCommonException):
"""
Base exception for file decompression class
"""
pass
class NoMIMETypeMatch(CompressionFileError):
"""
There is no decompressor registered for the specified MIME type
"""
pass
class NPMException(BaseCommonException):
"""Base exception for the NPM registry client"""
class NPMPackgeIntegrityError(NPMException):
"""Hash mismatch exception"""