Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Actually this is the point exactly that sent me thinking. If sub classes throw exceptions not defined in the parent then it must be a violation of LSP. Commented Jan 8, 2013 at 21:32
  • 1
    I think that in a language where exceptions are not checked, throwing them is not a violation of LSP. It's just a concept of a language itself, that anywhere anytime any exception can be thrown. So any client code should be ready for that. Commented Dec 17, 2017 at 11:38