Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating own Exception

 
Gaurav Pavan Kumar Jain
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know How I can create my own Exceptions
 
deepak adlakha
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like as follows:-

public class ConfigurationException extends Exception
{

public ConfigurationException() {
super();
}

public ConfigurationException(String s)
{
super(s);
}
}
 
Gaurav Pavan Kumar Jain
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Deepak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic