This is a general question. In Crystal, what is the difference between an Exception
and an Error
?
For example, in the JSON
package, there is both JSON::Error
and a JSON::ParseException
, which inherits from JSON::Error
. Also, how do we know if a method might raise an Exception
(or Error
, I really don't know the difference)?