diff --git a/base/src/main/java/de/staropensource/sosengine/base/exception/NoAccessException.java b/base/src/main/java/de/staropensource/sosengine/base/exception/NoCallAccessException.java similarity index 79% rename from base/src/main/java/de/staropensource/sosengine/base/exception/NoAccessException.java rename to base/src/main/java/de/staropensource/sosengine/base/exception/NoCallAccessException.java index d527ac49..e897e17f 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/exception/NoAccessException.java +++ b/base/src/main/java/de/staropensource/sosengine/base/exception/NoCallAccessException.java @@ -23,19 +23,16 @@ import org.jetbrains.annotations.NotNull; /** * Thrown when the caller class is not allowed to call the throwing method. - *
- * Not to be confused with {@link de.staropensource.sosengine.base.exception.reflection.NoAccessException}, - * which handles access violations of reflection objects. * * @since v1-alpha2 */ -public class NoAccessException extends RuntimeException { +public class NoCallAccessException extends RuntimeException { /** * Constructs this exception. * * @since v1-alpha2 */ - public NoAccessException() {} + public NoCallAccessException() {} /** * Constructs this exception. @@ -43,7 +40,7 @@ public class NoAccessException extends RuntimeException { * @param message message * @since v1-alpha2 */ - public NoAccessException(@NotNull String message) { + public NoCallAccessException(@NotNull String message) { super(message); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/exception/reflection/NoAccessException.java b/base/src/main/java/de/staropensource/sosengine/base/exception/reflection/NoReflectionAccessException.java similarity index 89% rename from base/src/main/java/de/staropensource/sosengine/base/exception/reflection/NoAccessException.java rename to base/src/main/java/de/staropensource/sosengine/base/exception/reflection/NoReflectionAccessException.java index cd695c09..3100910a 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/exception/reflection/NoAccessException.java +++ b/base/src/main/java/de/staropensource/sosengine/base/exception/reflection/NoReflectionAccessException.java @@ -26,7 +26,7 @@ import org.jetbrains.annotations.NotNull; * * @since v1-alpha2 */ -public class NoAccessException extends Exception { +public class NoReflectionAccessException extends Exception { /** * Constructs this exception. * @@ -34,7 +34,7 @@ public class NoAccessException extends Exception { * @param name class, method or field name * @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"); } }