All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.amayaframework.di.scheme.IllegalMemberException Maven / Gradle / Ivy

Go to download

A framework responsible for monitoring and automating the dependency injection process.

There is a newer version: 2.2.0
Show newest version
package io.github.amayaframework.di.scheme;

import java.lang.reflect.Member;

/**
 * Thrown to indicate that some member of the class, intended as a target for the injection scheme, cannot be one.
 */
public class IllegalMemberException extends RuntimeException {
    private final Member member;

    /**
     * Constructs an {@link IllegalMemberException} with the specified detail message and illegal member.
     *
     * @param message the detail message
     * @param member  the illegal member
     */
    public IllegalMemberException(String message, Member member) {
        super(message);
        this.member = member;
    }

    /**
     * Returns the illegal class member.
     *
     * @return the illegal class member
     */
    public Member getMember() {
        return member;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy