As you can see in the NSException class reference there is no direct way to do this. If the object raising the exception chooses to it can include this information in the userInfo dictionary.
Thanks for your reply. it really helped me lot.
I printed stack trace and it is giving me class file and its line number.
but i want all stack trace printed in string value.
is it possible to get NSString value for printed stack ?