Files
cellxgene/server/app/util/errors.py
Charlotte Weaver 9c6273eb94 core library (#711)
* move app creation to function

* create engine without load

* flake 8 fixes

* cleanup original scanpy test

* add default config

* handle missing data

* test data changes

* unify update

* load data isn't static anymore

* make app a class
2019-04-22 12:24:07 -07:00

62 lines
1.1 KiB
Python

class FilterError(Exception):
"""
Raised when filter is malformed
"""
def __init__(self, message):
self.message = message
class InteractiveError(Exception):
"""
Raised when computation would exceed interactive time
"""
def __init__(self, message):
self.message = message
class JSONEncodingValueError(Exception):
"""
Raised when file loaded into scanpy is misformatted
"""
def __init__(self, message):
self.message = message
class MimeTypeError(Exception):
"""
Raised when incompatible MIME type selected
"""
def __init__(self, message):
self.message = message
class PrepareError(Exception):
"""
Raised when data is misprepared
"""
def __init__(self, message):
self.message = message
class ScanpyFileError(Exception):
"""
Raised when file loaded into scanpy is misformatted
"""
def __init__(self, message):
self.message = message
class DriverError(Exception):
"""
Raised when file loaded into scanpy is misformatted
"""
def __init__(self, message):
self.message = message