Computer scienceProgramming languagesKotlinControl flowExceptionsException types

Catching supertype

Arrange exceptions

Report a typo

Given the following custom exception types:

  • B is a supertype of A
  • A is a supertype of C

Arrange them in the order they should be caught to ensure that each exception is handled specifically.

Put the items in the correct order
Exception
A
B
C
___

Create a free account to access the full topic