Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mostly tested but there may still be a few bugs, but i could run a few instances and connect to them from the game so thats a win i guess anyways this will be the first working release next step: containerize the backend itself
- Loading branch information
Showing
16 changed files
with
184 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/grimsi/accservermanager/backend/exception/ConflictException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package grimsi.accservermanager.backend.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
|
||
@ResponseStatus(HttpStatus.CONFLICT) | ||
public class ConflictException extends RuntimeException { | ||
public ConflictException(String message){ | ||
super(message); | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
...ion/CouldNotCreateContainerException.java → ...backend/exception/ContainerException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package grimsi.accservermanager.backend.exception; | ||
|
||
|
||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
|
||
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) | ||
public class CouldNotCreateContainerException extends RuntimeException { | ||
public class ContainerException extends RuntimeException{ | ||
|
||
public CouldNotCreateContainerException(String reason){ | ||
super(reason); | ||
public ContainerException(String message){ | ||
super(message); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
src/main/java/grimsi/accservermanager/backend/exception/CouldNotStartContainerException.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/java/grimsi/accservermanager/backend/exception/CouldNotStartInstanceException.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/main/java/grimsi/accservermanager/backend/exception/IllegalInstanceStateException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package grimsi.accservermanager.backend.exception; | ||
|
||
import grimsi.accservermanager.backend.enums.InstanceState; | ||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
|
||
@ResponseStatus(HttpStatus.CONFLICT) | ||
public class IllegalInstanceStateException extends RuntimeException { | ||
|
||
public IllegalInstanceStateException(String action, String instanceId, InstanceState state) { | ||
super("Cant " + action + " instance '" + instanceId + "' because its current state is '" + state + "'"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.