mapError

inline fun <T : Throwable> Micronaut.mapError(noinline mapper: (T) -> Int): Micronaut

Extension for Micronaut.mapError providing a mapError<FooException>(mapper) variant.

Return

The Micronaut entrypoint class

Author

Will Buck

Since

2.3.1

Parameters

T

The throwable error type

mapper

the mapping function