aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/client/ErrorHandler.java
blob: d170f5d242db1dbeeff8a22323ba09d1354fd780 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.client;

public interface ErrorHandler {
    static ErrorHandler empty() {
        return (r, e) -> {
        };
    }

    void reportError(RequestProperties request, Exception error);

    interface RequestProperties {
        String hostname();
    }
}