forked from StarOpenSource/Engine
Rename name-conflicting NoAccessExceptions
This commit is contained in:
parent
f578360395
commit
db10965c69
2 changed files with 5 additions and 8 deletions
|
@ -23,19 +23,16 @@ import org.jetbrains.annotations.NotNull;
|
|||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue