summaryrefslogtreecommitdiffstats
path: root/yolean/src/main/java/com/yahoo/yolean/chain/ChainCycleException.java
blob: aba92b986de68cdd0e6585acf88b6799a2557d81 (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 2016 Yahoo Inc. 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;
    }
}