File: exceptions.py

package info (click to toggle)
django-haystack 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,504 kB
  • sloc: python: 23,475; xml: 1,708; sh: 74; makefile: 71
file content (57 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
class HaystackError(Exception):
    """A generic exception for all others to extend."""

    pass


class SearchBackendError(HaystackError):
    """Raised when a backend can not be found."""

    pass


class SearchFieldError(HaystackError):
    """Raised when a field encounters an error."""

    pass


class MissingDependency(HaystackError):
    """Raised when a library a backend depends on can not be found."""

    pass


class NotHandled(HaystackError):
    """Raised when a model is not handled by the router setup."""

    pass


class MoreLikeThisError(HaystackError):
    """Raised when a model instance has not been provided for More Like This."""

    pass


class FacetingError(HaystackError):
    """Raised when incorrect arguments have been provided for faceting."""

    pass


class SpatialError(HaystackError):
    """Raised when incorrect arguments have been provided for spatial."""

    pass


class StatsError(HaystackError):
    "Raised when incorrect arguments have been provided for stats"
    pass


class SkipDocument(HaystackError):
    """Raised when a document should be skipped while updating"""

    pass