Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //a try/except loop
- do
- {
- try
- {
- //put all the stuff associated with your error causing code in here
- break; //this will end the loop once the code runs right
- }
- except
- {
- //put the stuff that you want to happen when the above code fails, in here!
- }
- }while(true) //this syntax may not be right!
- //this will keep repeating the error causing code until it doesnt cause an error.
- //at that point it will break from the loop and move on with the sequence.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement