Android Question ignore service error ?

Discussion in 'Android Questions' started by Devv, Apr 1, 2015.

  1. Devv

    Devv Active Member Licensed User

    How could i tell my service what ever error happens ignore it without getting service stopped .
    is their is a way to achieve this without me making try catch block for each function ?

    PS: and how could i make try block with empty catch ?
     
  2. sorex

    sorex Expert Licensed User

    you should figure out why the error happends and try to write a solution for it, worst case you can use the try/catch as you suggested.


    PS: just leave it empty

    Code:
    try
    some code
    catch
    end try
     
    Peter Simpson and Devv like this.
  3. Devv

    Devv Active Member Licensed User

    So their is no universal catch for all the service code ?
     
  4. DonManfred

    DonManfred Expert Licensed User

    No
     
    Peter Simpson likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice