seems ideal for the when clause? ``` try {...
# announcements
r
seems ideal for the when clause?
Copy code
try {
            someDomainParsingOperation(valueFromHttpRequest)
        } catch(e: Exception) {
            throw when(e) {
                is SomeDomainException -> SomeHttpEndpointException()
                is AnotherDomainException -> AnotherHttpEndpointException()
                else -> DefaultHttpEndpointException()
            }
        }