Given: Throwable is Exception\'s superclass.
When I read texts on writing your own \'exceptions\', I see examples of Throwable
Only two places you should see the word Throwable in code:
public static void main(String args[])
{
try
{
// Do some stuff
}
catch(Throwable t)
{
}
}
AND
public class SomeServlet extends HttpServlet
{
public void doPost(HttpRequest request, HttpResponse response)
{
try
{
// Do some stuff
}
catch (Throwable t)
{
// Log
}
}
}