JavaScript Try, Catch and Throw Best Practices

Java example with try, catch, Throw and exception. Really good example and you can use it readily in your projects.