File: feature.py

package info (click to toggle)
devolo-plc-api 1.5.1%2Bgit20260208.5d3989e-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 504 kB
  • sloc: python: 1,616; makefile: 6
file content (9 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
"""Exceptions that can occur when determining features."""


class FeatureNotSupported(Exception):
    """The feature is not supported by your device."""

    def __init__(self, feature: str) -> None:
        """Initialize error."""
        super().__init__(f"The device does not support {feature}.")