aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/system/ForceLoadError.java
blob: fd86319c1a8368ab1737afefcff99b039519bf2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.system;

/**
 * Special error to be propagated when force-loading a class fails.
 */
public class ForceLoadError extends java.lang.Error {

    /**
     * Create a new force load error
     *
     * @param className full name of offending class
     * @param cause what caused the failure
     */
    public ForceLoadError(String className, Throwable cause) {
        super("Force loading class '" + className + "' failed", cause);
    }

}