Search in sources :

Example 1 with BlockingTimeoutExceptionMapper

use of com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper in project atlasdb by palantir.

the class TimeLockAgent method registerExceptionMappers.

private void registerExceptionMappers() {
    registrar.accept(new BlockingTimeoutExceptionMapper());
    registrar.accept(new NotCurrentLeaderExceptionMapper(redirectRetryTargeter()));
    registrar.accept(new TooManyRequestsExceptionMapper());
}
Also used : TooManyRequestsExceptionMapper(com.palantir.atlasdb.timelock.TooManyRequestsExceptionMapper) BlockingTimeoutExceptionMapper(com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper) NotCurrentLeaderExceptionMapper(com.palantir.atlasdb.http.NotCurrentLeaderExceptionMapper)

Aggregations

BlockingTimeoutExceptionMapper (com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper)1 NotCurrentLeaderExceptionMapper (com.palantir.atlasdb.http.NotCurrentLeaderExceptionMapper)1 TooManyRequestsExceptionMapper (com.palantir.atlasdb.timelock.TooManyRequestsExceptionMapper)1