Did I find the right examples for you? yes no

All Samples(10)  |  Call(1)  |  Derive(6)  |  Import(3)

src/l/o/longaccess-client-HEAD/lacli/exceptions.py   longaccess-client(Download)
from multiprocessing import current_process
from lacore.exceptions import BaseAppException
 
 
class CacheInitException(BaseAppException):
    msg = "Application cache not initialized correctly"
 
 
class ApiNoSessionError(BaseAppException):
class WorkerFailureError(BaseAppException):
    def __init__(self, *args, **kwargs):
        super(BaseAppException, self).__init__(self.msg, *args, **kwargs)
        self.msg = "worker '{}' failed".format(current_process())
 
 
class Timeout(BaseAppException):

src/l/o/longaccess-client-HEAD/lacli/server/error.py   longaccess-client(Download)
from lacore.exceptions import ApiAuthException, BaseAppException
from lacli.exceptions import PauseEvent
from lacli.server.interface.ClientInterface.ttypes import InvalidOperation
from lacli.server.interface.ClientInterface.ttypes import ErrorType
from lacli.log import getLogger

src/l/a/lacore-0.1.3/lacore/t/test_exceptions.py   lacore(Download)
    def _makeit(self, *args, **kw):
        from lacore.exceptions import BaseAppException
        return BaseAppException(*args, **kw)
 
    def test_exception(self):