Source code for sensirion_shdlc_svm40.device_errors

# -*- coding: utf-8 -*-
# (c) Copyright 2020 Sensirion AG, Switzerland

##############################################################################
##############################################################################
#                 _____         _    _ _______ _____ ____  _   _
#                / ____|   /\  | |  | |__   __|_   _/ __ \| \ | |
#               | |       /  \ | |  | |  | |    | || |  | |  \| |
#               | |      / /\ \| |  | |  | |    | || |  | | . ` |
#               | |____ / ____ \ |__| |  | |   _| || |__| | |\  |
#                \_____/_/    \_\____/   |_|  |_____\____/|_| \_|
#
#     THIS FILE IS AUTOMATICALLY GENERATED AND MUST NOT BE EDITED MANUALLY!
#
# Generator:    sensirion-shdlc-interface-generator 0.8.2
# Product:      SVM40
# Version:      0.3.0
#
##############################################################################
##############################################################################

# flake8: noqa

from __future__ import absolute_import, division, print_function
from sensirion_shdlc_driver.errors import ShdlcDeviceError

import logging
log = logging.getLogger(__name__)


[docs]class Svm40CommandNotAllowedInCurrentState(ShdlcDeviceError): """ Command is not allowed in the current state. """
[docs] def __init__(self): super(Svm40CommandNotAllowedInCurrentState, self).__init__( 0x43, "Command is not allowed in the current state." )
[docs]class Svm40FatalError(ShdlcDeviceError): """ An error without specific error code occurred. """
[docs] def __init__(self): super(Svm40FatalError, self).__init__( 0x7F, "An error without specific error code occurred." )
""" List containing all device errors specified in this file. """ SVM40_DEVICE_ERROR_LIST = [ Svm40CommandNotAllowedInCurrentState(), Svm40FatalError(), ]