Rename name-conflicting NoAccessExceptions
Some checks failed
build-and-test / build (push) Failing after 36s
build-and-test / test (push) Failing after 36s
build-and-test / generate-javadoc (push) Failing after 42s

This commit is contained in:
JeremyStar™ 2024-08-31 13:53:39 +02:00
parent f578360395
commit db10965c69
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 5 additions and 8 deletions

View file

@ -23,19 +23,16 @@ import org.jetbrains.annotations.NotNull;
/** /**
* Thrown when the caller class is not allowed to call the throwing method. * Thrown when the caller class is not allowed to call the throwing method.
* <p>
* Not to be confused with {@link de.staropensource.sosengine.base.exception.reflection.NoAccessException},
* which handles access violations of reflection objects.
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
public class NoAccessException extends RuntimeException { public class NoCallAccessException extends RuntimeException {
/** /**
* Constructs this exception. * Constructs this exception.
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
public NoAccessException() {} public NoCallAccessException() {}
/** /**
* Constructs this exception. * Constructs this exception.
@ -43,7 +40,7 @@ public class NoAccessException extends RuntimeException {
* @param message message * @param message message
* @since v1-alpha2 * @since v1-alpha2
*/ */
public NoAccessException(@NotNull String message) { public NoCallAccessException(@NotNull String message) {
super(message); super(message);
} }
} }

View file

@ -26,7 +26,7 @@ import org.jetbrains.annotations.NotNull;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
public class NoAccessException extends Exception { public class NoReflectionAccessException extends Exception {
/** /**
* Constructs this exception. * Constructs this exception.
* *
@ -34,7 +34,7 @@ public class NoAccessException extends Exception {
* @param name class, method or field name * @param name class, method or field name
* @since v1-alpha2 * @since v1-alpha2
*/ */
public NoAccessException(@NotNull String type, @NotNull String name) { public NoReflectionAccessException(@NotNull String type, @NotNull String name) {
super("Access to " + type + " " + name + " has been denied"); super("Access to " + type + " " + name + " has been denied");
} }
} }