File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • 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){

i am calling as
throw new BusinessException("Invalid data");
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic