• Petteroe
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I get the following error when trying to create a hierarchy of exception classes.

 

Save error: NoPersonLinkException: Non-virtual and non-abstract type cannot be extended: InvalidUserUserException
 

Samples in docs don't use virtual or abstract keywords when extending exception classes.  

Please advise on syntax.

 

//FIRST CLASS:
public class InvalidUserException extends Exception{}

//SECOND CLASS:
public class NoPersonLinkException extends InvalidUserException{}