how to prevent exceptions from stopping file execution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prince123
    New Member
    • Jan 2010
    • 1

    #1

    how to prevent exceptions from stopping file execution

    Is there any way to prevent exceptions from stopping file execution other than using try and except statements, because using these statements at many places doesn't look good. Please help me in this..I am stuck in my project because of this.
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    The point of exceptions is to try them. You could try putting all of your code in one massive try, but I think you would have issues returning to the exact point inside the try where your exception was thrown.

    I don't think there is a way around using try everywhere in your code where you get an exception.

    Comment

    Working...