Exception Handling

I am writing java test cases for appium android.
When I place condition like “assertEquals” or if I click on button programmatically… If condition failed then appium testcase execution stops. It does not check for further conditions/test-cases.
Can anyone please guide me how to handle such exception and continue for further testcase execution.