summaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/ZtsException.java
blob: cb0b21ba459b76eb4b1c1663f635ba14bc0b4d30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.athenz;

import com.yahoo.athenz.zts.ZTSClientException;

/**
 * @author bjorncs
 */
public class ZtsException extends RuntimeException {

    private final int code;

    public ZtsException(ZTSClientException e) {
        super(e.getMessage(), e);
        this.code = e.getCode();
    }


    public int getCode() {
        return code;
    }
}