A brief thought about exceptions in Java

My computer has a built-in coffee cup holder.

Sun should rename RuntimeException to StupidProgrammerException. That would clearly describe the kind of error that RuntimeExceptions are designed to report.

It would also give valuable feedback to authors of uber-frameworks whenever they start writing code like:

public class CheckedExceptionWrappedByUberFramework 
    extends StupidProgrammerException 
{
    ...
}

Copyright © 2006 Nat Pryce. Posted 2006-08-25. Share it.

Comments powered by Disqus