File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception thrown from bean is received as null in client

 
selvas kumars
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i am throwing an Exception from the bean method and in the client i am receving it as null.
what might be the reason for this?
The exception which is thrown is BusinessException which extends Exception class.

The code snippet for BusinessException is as follows
class BusinessException extends Exception{
public BusinessException(String exp){
super(strMessage);
}
}

i am calling as
throw new BusinessException("Invalid data");
Thanks,
silva.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic