pawel.barszcz
11/24/2016, 5:01 PMval parsedValue = try {
someDomainParsingOperation(valueFromHttpRequest)
} catch (e: SomeDomainException) {
throw SomeHttpEndpointException()
} catch (e: AnotherDomainException) {
throw AnotherHttpEndpointException()
}