Exception Handaling in google app engine

Posted by Rahul99 on Stack Overflow See other posts from Stack Overflow or by Rahul99
Published on 2010-03-29T11:03:43Z Indexed on 2010/03/29 11:23 UTC
Read the original article Hit count: 134

i am raising exception using

if UserId == '' and Password == '':
    raise Exception.MyException , "wrong userId or password" 

but i want print the error message on same page

class MyException(Exception):
    def __init__(self,msg):
        Exception.__init__(self,msg)

© Stack Overflow or respective owner

Related posts about python

Related posts about google-app-engine