Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
raise test
class ArgsNumException(Exception):
def __init__(self,value):
self.value = value
def __str__(self):
return repr(self.value)
def test(*args,**kwargs):
if len(args) != 3:
raise ArgsNumException(len(args))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment