Ruckus
12/03/2019, 5:06 PMTODO()
throw an Error
instead of an Exception
?
The KDoc for NotImplementedError
says:
> An exception is thrown to indicate that a method body remains to be implemented.
(It's extra weird considering error()
throws an Exception
)streetsofboston
12/03/2019, 5:09 PMError
because it is a structural error in your code, not some exceptional condition from an external context/system.Ruckus
12/03/2019, 5:10 PMstreetsofboston
12/03/2019, 5:15 PMCasey Brooks
12/03/2019, 5:19 PMRuckus
12/03/2019, 5:46 PMstreetsofboston
12/03/2019, 5:54 PMRuckus
12/03/2019, 6:14 PMException
is not a generic term in this case. It's a specific class that is not part of the hierarchy of NotImplementedError
.streetsofboston
12/03/2019, 6:19 PMRuckus
12/03/2019, 6:22 PM