class SignalHandler():
    """
    Class for signal handling

    :param sig_enum: The signal enum
    :type sig_enum: int
    :param frame: Stack frame
    :type frame: frame
    :param received_signal: If signal was received flag
    :type received_signal: bool
    """
    def __init__(cls):
        """Class constructor"""
        cls.sig_enum = None
        cls.frame = None
        cls.received_signal = False

    def handle(cls, sig=None, frame=None):
        """
        Function for signal handling

        The function is added as the callback for a signal handler. Saves the
        signal parameters and sets the received signal paramemeter.
        :param sig_enum: The signal enum
        :type sig_enum: int
        :param frame: Stack frame
        :type frame: frame
        """
        cls.sig_enum = sig
        cls.frame = frame
        cls.received_signal = True
