Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Exception Handling


I want to know exception handling in Cascade. In Java there is Exception Handling mechanism but i did not find anything like that in cascade. 


In Java if we make a thread to sleep it may throw some exception so we handle that by adding try-catch block at respective place.  In Cascade how to handle this as i dont find any document reagrding exception handling.

Posts: 17,024
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Exception Handling

try {
//do stuff
} catch (err) {
//handle the error

 I did not find a proper documentation for it so far, i saw this on an online sample and used it successfully:


feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter