def __init__ ( self , node_def , op , message ) : super ( InvalidArgumentError , self ) . __init__ ( node_def , op , message , INVALID_ARGUMENT )
how to raise value error in python constructor
Creates an InvalidArgumentError .
def __init__(self, node_def, op, message):
        """Creates an `InvalidArgumentError`."""
        super(InvalidArgumentError, self).__init__(
            node_def, op, message, INVALID_ARGUMENT
        )