Files
cellxgene/server/common/errors.py
bmccandless 907cc634f5 server refactor (#1140)
This PR contains a refactoring to make adding new features easier.

The new features include supporting the tiledb format, and the multi dataset application.

The refactoring includes

Simplifying the directory structure and files.
a class structure to handle annotations (currently one type: AnnotationsLocalFile).
a class to handle application configuration
a class structure to handle matrix data (currently AnndataAdaptor and CxgAdaptor). CxgAdaptor uses tiledb.
Algorithms that were previously dependent on the scanpy anndata object are now generalized to work with an abstract interface.
The multi dataset option is not fully supported yet, and so the option to use it is hidden.
Use "cli launch --dataroot ..."
To access this feature.

All combinations of app single dataset/ app multi dataset and AnndataAdaptor/CxgAdaptor work with all the features, such as annotations, ontologies, diffexp.
2020-02-19 10:22:35 -08:00

55 lines
901 B
Python

class FilterError(Exception):
"""
Raised when filter is malformed
"""
pass
class JSONEncodingValueError(Exception):
"""
Raised when data cannot be encoded into json
"""
pass
class MimeTypeError(Exception):
"""
Raised when incompatible MIME type selected
"""
pass
class PrepareError(Exception):
"""
Raised when data is misprepared
"""
pass
class DatasetAccessError(Exception):
"""
Raised when file loaded into a DataAdaptor is misformatted
"""
pass
class DisabledFeatureError(Exception):
"""
Raised when an attempt to use a disabled feature occurs
"""
pass
class AnnotationsError(Exception):
"""
Raised when an attempt to use the annotations feature fails
"""
pass
class OntologyLoadFailure(Exception):
"""
Raised when reading the ontology file fails
"""
pass