I am using spring mvc framework. I want to handle my own created Exception (MyException) that extends with java Exception class. What is the best way to handle both application specific Exceptions and any java related exceptions.
In my Manager class(i am using DAO and DTO both patterns) i am showing method as below.
public List<TarTrackingResultsDTO> loadTarInfo(long _startingTar,
String _stateCode) throws AFMException;
I want to handle this in controller but there may arise java.lang.Exception related exceptions.
Please give me a peace of code also.