Move some exceptions

This commit is contained in:
JeremyStar™ 2024-07-16 14:48:41 +02:00
parent 31b1a2d199
commit 481ce80535
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
21 changed files with 31 additions and 27 deletions

View file

@ -27,7 +27,7 @@ import de.staropensource.sosengine.base.data.versioning.StarOpenSourceVersioning
import de.staropensource.sosengine.base.events.EngineCrashEvent; import de.staropensource.sosengine.base.events.EngineCrashEvent;
import de.staropensource.sosengine.base.events.EngineShutdownEvent; import de.staropensource.sosengine.base.events.EngineShutdownEvent;
import de.staropensource.sosengine.base.events.LogEvent; import de.staropensource.sosengine.base.events.LogEvent;
import de.staropensource.sosengine.base.exceptions.UnmetDependenciesException; import de.staropensource.sosengine.base.exceptions.dependency.UnmetDependenciesException;
import de.staropensource.sosengine.base.internal.events.InternalEngineShutdownEvent; import de.staropensource.sosengine.base.internal.events.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.internal.types.DependencySubsystemVector; import de.staropensource.sosengine.base.internal.types.DependencySubsystemVector;
import de.staropensource.sosengine.base.logging.CrashHandler; import de.staropensource.sosengine.base.logging.CrashHandler;

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.base.classes; package de.staropensource.sosengine.base.classes;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException; import de.staropensource.sosengine.base.exceptions.versioning.IncompatibleVersioningSystemException;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Range; import org.jetbrains.annotations.Range;

View file

@ -20,8 +20,8 @@
package de.staropensource.sosengine.base.data.versioning; package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.classes.VersioningSystem; import de.staropensource.sosengine.base.classes.VersioningSystem;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException; import de.staropensource.sosengine.base.exceptions.versioning.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.base.utility.Miscellaneous; import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter; import lombok.Getter;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;

View file

@ -20,8 +20,8 @@
package de.staropensource.sosengine.base.data.versioning; package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.classes.VersioningSystem; import de.staropensource.sosengine.base.classes.VersioningSystem;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException; import de.staropensource.sosengine.base.exceptions.versioning.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import lombok.Getter; import lombok.Getter;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Range; import org.jetbrains.annotations.Range;

View file

@ -20,8 +20,8 @@
package de.staropensource.sosengine.base.data.versioning; package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.classes.VersioningSystem; import de.staropensource.sosengine.base.classes.VersioningSystem;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException; import de.staropensource.sosengine.base.exceptions.versioning.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.base.utility.Miscellaneous; import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter; import lombok.Getter;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;

View file

@ -20,8 +20,8 @@
package de.staropensource.sosengine.base.data.versioning; package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.classes.VersioningSystem; import de.staropensource.sosengine.base.classes.VersioningSystem;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException; import de.staropensource.sosengine.base.exceptions.versioning.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.base.types.VersionType; import de.staropensource.sosengine.base.types.VersionType;
import lombok.Getter; import lombok.Getter;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;

View file

@ -20,8 +20,8 @@
package de.staropensource.sosengine.base.data.versioning; package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.classes.VersioningSystem; import de.staropensource.sosengine.base.classes.VersioningSystem;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException; import de.staropensource.sosengine.base.exceptions.versioning.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.base.utility.Miscellaneous; import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter; import lombok.Getter;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;

View file

@ -20,8 +20,8 @@
package de.staropensource.sosengine.base.data.versioning; package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.classes.VersioningSystem; import de.staropensource.sosengine.base.classes.VersioningSystem;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException; import de.staropensource.sosengine.base.exceptions.versioning.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.base.utility.Miscellaneous; import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter; import lombok.Getter;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package de.staropensource.sosengine.base.exceptions; package de.staropensource.sosengine.base.exceptions.dependency;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package de.staropensource.sosengine.base.exceptions; package de.staropensource.sosengine.base.exceptions.dependency;
import de.staropensource.sosengine.base.types.DependencyVector; import de.staropensource.sosengine.base.types.DependencyVector;
import lombok.Getter; import lombok.Getter;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package de.staropensource.sosengine.base.exceptions; package de.staropensource.sosengine.base.exceptions.versioning;
import de.staropensource.sosengine.base.classes.VersioningSystem; import de.staropensource.sosengine.base.classes.VersioningSystem;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package de.staropensource.sosengine.base.exceptions; package de.staropensource.sosengine.base.exceptions.versioning;
import de.staropensource.sosengine.base.classes.VersioningSystem; import de.staropensource.sosengine.base.classes.VersioningSystem;
import lombok.Getter; import lombok.Getter;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.utility; package de.staropensource.sosengine.base.utility;
import de.staropensource.sosengine.base.exceptions.UnexpectedThrowableException; import de.staropensource.sosengine.base.exceptions.UnexpectedThrowableException;
import de.staropensource.sosengine.base.exceptions.UnmetDependenciesException; import de.staropensource.sosengine.base.exceptions.dependency.UnmetDependenciesException;
import de.staropensource.sosengine.base.types.DependencyVector; import de.staropensource.sosengine.base.types.DependencyVector;
import de.staropensource.sosengine.base.types.immutable.ImmutableArrayList; import de.staropensource.sosengine.base.types.immutable.ImmutableArrayList;
import de.staropensource.sosengine.base.types.immutable.ImmutableLinkedList; import de.staropensource.sosengine.base.types.immutable.ImmutableLinkedList;

View file

@ -20,7 +20,9 @@ module sosengine.base {
exports de.staropensource.sosengine.base.data.versioning; exports de.staropensource.sosengine.base.data.versioning;
exports de.staropensource.sosengine.base.events; exports de.staropensource.sosengine.base.events;
exports de.staropensource.sosengine.base.exceptions; exports de.staropensource.sosengine.base.exceptions;
exports de.staropensource.sosengine.base.exceptions.dependency;
exports de.staropensource.sosengine.base.exceptions.reflection; exports de.staropensource.sosengine.base.exceptions.reflection;
exports de.staropensource.sosengine.base.exceptions.versioning;
exports de.staropensource.sosengine.base.logging; exports de.staropensource.sosengine.base.logging;
exports de.staropensource.sosengine.base.logging.implementation; exports de.staropensource.sosengine.base.logging.implementation;
exports de.staropensource.sosengine.base.reflection; exports de.staropensource.sosengine.base.reflection;
@ -46,7 +48,9 @@ module sosengine.base {
opens de.staropensource.sosengine.base.data.versioning; opens de.staropensource.sosengine.base.data.versioning;
opens de.staropensource.sosengine.base.events; opens de.staropensource.sosengine.base.events;
opens de.staropensource.sosengine.base.exceptions; opens de.staropensource.sosengine.base.exceptions;
opens de.staropensource.sosengine.base.exceptions.dependency;
opens de.staropensource.sosengine.base.exceptions.reflection; opens de.staropensource.sosengine.base.exceptions.reflection;
opens de.staropensource.sosengine.base.exceptions.versioning;
opens de.staropensource.sosengine.base.logging; opens de.staropensource.sosengine.base.logging;
opens de.staropensource.sosengine.base.logging.implementation; opens de.staropensource.sosengine.base.logging.implementation;
opens de.staropensource.sosengine.base.reflection; opens de.staropensource.sosengine.base.reflection;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.srctests.data.versioning; package de.staropensource.sosengine.base.srctests.data.versioning;
import de.staropensource.sosengine.base.data.versioning.FourNumberVersioningSystem; import de.staropensource.sosengine.base.data.versioning.FourNumberVersioningSystem;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.unittests.UnitLogger; import de.staropensource.sosengine.unittests.UnitLogger;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base.srctests.data.versioning;
import de.staropensource.sosengine.base.data.versioning.OneNumberVersioningSystem; import de.staropensource.sosengine.base.data.versioning.OneNumberVersioningSystem;
import de.staropensource.sosengine.base.data.versioning.TwoNumberVersioningSystem; import de.staropensource.sosengine.base.data.versioning.TwoNumberVersioningSystem;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.unittests.UnitLogger; import de.staropensource.sosengine.unittests.UnitLogger;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.srctests.data.versioning; package de.staropensource.sosengine.base.srctests.data.versioning;
import de.staropensource.sosengine.base.data.versioning.SemanticVersioningSystem; import de.staropensource.sosengine.base.data.versioning.SemanticVersioningSystem;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.unittests.UnitLogger; import de.staropensource.sosengine.unittests.UnitLogger;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base.srctests.data.versioning;
import de.staropensource.sosengine.base.data.versioning.SemanticVersioningSystem; import de.staropensource.sosengine.base.data.versioning.SemanticVersioningSystem;
import de.staropensource.sosengine.base.data.versioning.StarOpenSourceVersioningSystem; import de.staropensource.sosengine.base.data.versioning.StarOpenSourceVersioningSystem;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.unittests.UnitLogger; import de.staropensource.sosengine.unittests.UnitLogger;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.srctests.data.versioning; package de.staropensource.sosengine.base.srctests.data.versioning;
import de.staropensource.sosengine.base.data.versioning.ThreeNumberVersioningSystem; import de.staropensource.sosengine.base.data.versioning.ThreeNumberVersioningSystem;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.unittests.UnitLogger; import de.staropensource.sosengine.unittests.UnitLogger;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.srctests.data.versioning; package de.staropensource.sosengine.base.srctests.data.versioning;
import de.staropensource.sosengine.base.data.versioning.TwoNumberVersioningSystem; import de.staropensource.sosengine.base.data.versioning.TwoNumberVersioningSystem;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException; import de.staropensource.sosengine.base.exceptions.versioning.InvalidVersionStringException;
import de.staropensource.sosengine.unittests.UnitLogger; import de.staropensource.sosengine.unittests.UnitLogger;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;

View file

@ -65,7 +65,7 @@ tasks.register("javadocAll", Javadoc) {
logger.log(LogLevel.WARN, "If this task fails, make sure to reset all module-info.java files using git or you may have issues.") logger.log(LogLevel.WARN, "If this task fails, make sure to reset all module-info.java files using git or you may have issues.")
for (String subproject : subprojects) { for (String subproject : subprojects) {
File source = new File(project(subproject).projectDir.getPath() + "/src/main/java/module-info.java"); File source = new File(project(subproject).projectDir.getPath() + "/src/main/java/module-info.java")
File target = new File(project(subproject).projectDir.getPath() + "/src/main/module-info.java") File target = new File(project(subproject).projectDir.getPath() + "/src/main/module-info.java")
if (source.exists()) { if (source.exists()) {
@ -76,7 +76,7 @@ tasks.register("javadocAll", Javadoc) {
} }
doLast { doLast {
for (String subproject : subprojects) { for (String subproject : subprojects) {
File source = new File(project(subproject).projectDir.getPath() + "/src/main/module-info.java"); File source = new File(project(subproject).projectDir.getPath() + "/src/main/module-info.java")
File target = new File(project(subproject).projectDir.getPath() + "/src/main/java/module-info.java") File target = new File(project(subproject).projectDir.getPath() + "/src/main/java/module-info.java")
if (source.exists()) { if (source.exists()) {