Source code for wbia.algo.hots.exceptions

# -*- coding: utf-8 -*-

# import utool
# print, print_,  printDBG, rrr, profile = utool.inject(__name__, '[hsexcept]', DEBUG=False)
import logging
import utool as ut

(print, rrr, profile) = ut.inject2(__name__)
logger = logging.getLogger('wbia')


[docs]class QueryException(Exception): def __init__(self, msg): super(QueryException, self).__init__(msg)
[docs]def NoDescriptorsException(ibs, qaid): msg = ('QUERY ERROR IN %s: qaid=%r has no descriptors!' + 'Please delete it.') % ( ibs.get_dbname(), qaid, ) ex = QueryException(msg) return ex
[docs]class HotsCacheMissError(Exception): pass
[docs]class HotsNeedsRecomputeError(Exception): pass