Try Catch Block is not Working for any query type like NamedQuery

See Wiki - how to post code on this forum and then use the pencil icon to fix your post. Thanks.