@staticmethod
def get_error_class(remote_err):
    """
        This is a function to get the error class of a remote thrown error when using callRemote.
        :param remote_err: :obj:`twisted.spread.pb.RemoteError`
        :return: class
        """
    error_name = remote_err.remoteType.split(b'.')[-1].decode()
    error_class = eval(error_name)
    return error_class
