Move some exceptions
This commit is contained in:
parent
31b1a2d199
commit
481ce80535
21 changed files with 31 additions and 27 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue