aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/MethodCreateException.java
blob: 40699a015b192b281dab7820d4a3199513a0c2e5 (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
25
26
27
28
29
30
31
32
33
34
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;


/**
 * Unchecked exception thrown when the {@link Method} constructor
 * fails to resolve the method handler. The most usual reasons for
 * this is that the method handler simply does not exist or that it
 * has the wrong signature.
 **/
public class MethodCreateException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * Create a MethodCreateException with the given message.
     *
     * @param msg the exception message
     **/
    MethodCreateException(String msg) {
        super(msg);
    }

    /**
     * Create a MethodCreateException with the given message and
     * cause.
     *
     * @param msg the exception message
     * @param cause what caused this exception
     **/
    MethodCreateException(String msg, Throwable cause) {
        super(msg, cause);
    }
}