def MakeError(name, message):
 return JsToPyException(ERRORS[name](Js(message)))

def MakeError ( name , message ) : return JsToPyException ( ERRORS [ name ] ( Js ( message ) ) )
returns pyjsexception with pyjserror inside .