exceptions
exceptions
Custom exceptions and warnings for spotforecast2.
This module contains all the custom warnings and error classes used across spotforecast2.
Examples
Using custom warnings::
import warnings
from spotforecast2.exceptions import MissingValuesWarning
# Raise a warning
warnings.warn(
"Missing values detected in input data.",
MissingValuesWarning
)
# Suppress a specific warning
warnings.simplefilter('ignore', category=MissingValuesWarning)