G
gaurav v bagga
hi all,
i am having few methods they all throw few common exceptions
method1 throws a,b,c
method 2 throws a,b,c
method3 throws a,b .......
can i some how make it throw only one exception which will take care
of res all others
like
method1 throws foo
method2 throws foo
and foo encapsulates all a,b,c
something like that possible..
a,b,c mainly i have are
SQLException, InstantiationException, IllegalAccessException,
ClassNotFoundException
regards
gaurav
i am having few methods they all throw few common exceptions
method1 throws a,b,c
method 2 throws a,b,c
method3 throws a,b .......
can i some how make it throw only one exception which will take care
of res all others
like
method1 throws foo
method2 throws foo
and foo encapsulates all a,b,c
something like that possible..
a,b,c mainly i have are
SQLException, InstantiationException, IllegalAccessException,
ClassNotFoundException
regards
gaurav