Yes, it is acceptable. But a try without a catch clause sends its error to the next higher catch, or the window, if there is no catch defined within that try.
If you do not have a catch, a try expression requires a finally clause.
try {
// whatever;
} finally {
// always runs
}
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать