Re: Try Catch



Thanks..

"PvdG42" <pvdg@xxxxxxxxxxxxx> wrote in message
news:udPHxvKnIHA.5024@xxxxxxxxxxxxxxxxxxxxxxx
"Brian" <bsgallatin@xxxxxxxxxxxxxxxx> wrote in message
news:uTVuRHFnIHA.6064@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
I have a try catch block that
when the function returns no errors, I want to play a sound (1.wav)
but if it fails I want to play (2.wav)
what is the right way of doing this, or what is a way doing this



Assuming that by "returns no errors" you mean doesn't throw an exception,
play the success sound from within the try block just after the function
call, and play the failure sound from within the catch block.



.



Relevant Pages

  • Re: Shostakovichs 8th symphony?
    ... but the PSO simply doesn't have enough sound and impact ... They play very well, but they just don't have a very impactful ... playing style. ... the conductors who shape the sound of the orchestra. ...
    (rec.music.classical.recordings)
  • Re: Shostakovichs 8th symphony?
    ... but the PSO simply doesn't have enough sound and impact ... They play very well, but they just don't have a very impactful ... Francisco sounds to me compared to my favorite orchestras (I think ... playing style. ...
    (rec.music.classical.recordings)
  • Re: Shostakovichs 8th symphony?
    ... but the PSO simply doesn't have enough sound and impact ... They play very well, but they just don't have a very impactful ... Francisco sounds to me compared to my favorite orchestras (I think ... playing style. ...
    (rec.music.classical.recordings)
  • Re: Chord connection
    ... could hear 20+ notes(he would listen to an orchestra play a chord and then ... sound a little bizarre) is to meditate. ... feels the same about practice and writing - did I do it right? ... This kinda goes back to thinking that there must be ...
    (rec.music.theory)
  • Re: What have you always wanted to say to a vocalist?
    ... I can think of a number of musicians who prefer that attitude about singing ... > Sonny didn't show us that because he couldn't play any other way. ... Sinatra all weighing in--and he really did sound like them). ... singers is true beyond any doubt. ...
    (rec.music.makers.jazz)