Aspects


vs


Runtimeexception

RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Virtual Machine.

Unchecked-exception

In Java programming, an exception that does not need to be declared in a method's throws clause, and is not required to be caught.

Others

Quality Example
Simpler

"Using throw new runtimeexception e is simpler to comprehend than throwables.propagate in the scenario where you want to throw an unchecked-exception wrapping a checked exception"

from question "How do I use Throwables.propagateIfInstanceOf() from Google Guava?"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0