I'm just wondering if there is any generic exception that I can throw in case I don't want to create custom one for example in some simple scripts.
I'm looking for an exception that takes a single String as a reason.
As an example the NoMethodError, however it has a specific semantics and I want a generic one.
https://hackage.haskell.org/package/base-4.16.0.0/docs/Control-Exception.html#t:NoMethodError