Skip to content

exceptions

CompareSameKernelError

CompareSameKernelError(
    func: FuncExceptT,
    kernel: KernelT,
    message: str = "You may not compare {kernel} with itself!",
    **kwargs: Any
)

Bases: CustomValueError

Raised when two of the same kernels are compared to each other.

Source code
16
17
18
19
20
def __init__(
    self, func: FuncExceptT, kernel: KernelT, message: str = 'You may not compare {kernel} with itself!',
    **kwargs: Any
) -> None:
    super().__init__(message, func, kernel=Kernel.from_param(kernel, CompareSameKernelError), **kwargs)