Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception thrown from bean is received as null in client

selvas kumars
Ranch Hand
Posts: 115
  • 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");
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic