aboutsummaryrefslogtreecommitdiffstats
path: root/yolean/src/main/java/com/yahoo/yolean/chain/ChainCycleException.java
blob: b4e0a6815b4ea4c7bd7c143a3c2f313f8abc7964 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.yolean.chain;

import com.google.common.collect.ImmutableList;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author tonytv
 */
public class ChainCycleException extends RuntimeException {

    private final List<?> components;

    public ChainCycleException(List<?> components) {
        this.components = ImmutableList.copyOf(components);
    }

    public List<?> components() {
        return components;
    }
}