I am puzzled about creating checked exception class
in java.
Many article says custom exception can be created by
class MyException extends Exception
{
//constructor defined
}
Since RuntimeException is also inherited from Exception
class.
Is it not possible to create a class that will cover only Checked Exceptions ?
Or I need to specify list of checked exceptions
class MyException extends IOException
{
//constructor defined
}
In above code, there can be a scenario where i would miss certain checked exceptions.