[docs]class RamException(Exception):
"""Base exception class for custom exceptions."""
[docs]class TooManySessionsError(RamException):
"""Raised when too many sessions' worth of data are passed as an argument.
"""
[docs]class TooManyExperimentsError(RamException):
"""Raised when too many experiments are included with events."""
[docs]class UnsupportedExperimentError(RamException):
"""Raised when trying to do something with an experiment that is not yet
supported.
"""
[docs]class DataLoadingError(RamException):
""" Raised when when unable to load expected files"""
# FIXME: refactor naming
[docs]class MultistimNotAllowedException(RamException):
"""Raised when attempting to define multiple stim sites for an experiment
which doesn't support it.
"""
# FIXME: refactor naming
[docs]class UnableToReloadClassifierException(RamException):
"""Raised when processing cannot load or use the actual classifier from
a session.
"""
[docs]class MissingFileError(RamException):
"""Raised when a required file doesn't appear to exist."""
[docs]class CommandLineError(RamException):
"""Raised when there are CLI-related errors."""
[docs]class MissingArgumentsError(RamException):
"""Raised when an optional argument is not optional for certain cases but
is not specified.
Example: when not giving trigger pairs for PS5 experiments.
"""
[docs]class ValidationError(RamException):
"""Raised when validation checks fail."""
[docs]class RetrievalBaselineError(RamException):
"""
Raised when something goes wrong with adding baseline events during
the retrieval period
"""