Source code for pyworkflow.exceptions

""" Module to define pyworkflow exceptions"""
from pyworkflow import DOCSITEURLS


[docs]class PyworkflowException(Exception): """Root exception it has an extra attribute url that is meant to provide information about the error and how to solve it""" def __init__(self, *args, url=DOCSITEURLS.CONTACTUS): self._url = url super().__init__(*args)
[docs] def getUrl(self): return self._url
[docs]class ValidationException(PyworkflowException): """ Validation exception""" pass