Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun main() {
- try {
- // função de processamento de notas
- } catch (ex: ArithmeticException) {
- // tratando a exceção ArithmeticException
- } catch (ex: NumberFormatException) {
- // tratando a exceção NumberFormatException
- } catch (ex: Exception) {
- // tratando as exceções mais genéricas
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement