dbz dbz

dbz dbz

  • NA
  • 14
  • 1.7k

Stop a method after error.

Apr 2 2016 7:43 AM
Hi Guys,
 
I'm having a trouble in stop or repeating a method after another method is failed...
 
what is my code :-
 
void method1()
{   //code   }
void method2()
{   fetchdata()   }
void method3()
{   fetchdata2()   }
void fetchdata()
{   //code   }
void fetchdata2()
{   //code   }
void button_click()
{   method1();   method2();   method3();   }
 
so my issue is if fetchdata1() returns null then either process repeat itself or stop don't go to method3() and forward.
 
Can anybody help me please.. Thanks 

Answers (5)