-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
353 additions
and
264 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
74 changes: 0 additions & 74 deletions
74
core/src/main/java/com/shieldblaze/expressgateway/core/cluster/LoadBalancerContext.java
This file was deleted.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
...c/main/java/com/shieldblaze/expressgateway/core/exceptions/InvalidOperationException.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,22 @@ | ||
package com.shieldblaze.expressgateway.core.exceptions; | ||
|
||
import java.io.Serial; | ||
|
||
public final class InvalidOperationException extends RuntimeException { | ||
|
||
@Serial | ||
private static final long serialVersionUID = -4203302259240123822L; | ||
|
||
public InvalidOperationException(String message) { | ||
super(message); | ||
} | ||
|
||
public InvalidOperationException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
@Override | ||
public synchronized Throwable fillInStackTrace() { | ||
return this; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
core/src/main/java/com/shieldblaze/expressgateway/core/exceptions/NotFoundException.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,29 @@ | ||
package com.shieldblaze.expressgateway.core.exceptions; | ||
|
||
import java.io.Serial; | ||
|
||
/** | ||
* <p> Exception to be thrown when a resource is not found. </p> | ||
*/ | ||
public final class NotFoundException extends RuntimeException { | ||
|
||
@Serial | ||
private static final long serialVersionUID = -6677068064053200288L; | ||
|
||
public NotFoundException(Type type) { | ||
super(type.name() + " not found"); | ||
} | ||
|
||
public NotFoundException(String message) { | ||
super(message); | ||
} | ||
|
||
@Override | ||
public synchronized Throwable fillInStackTrace() { | ||
return this; | ||
} | ||
|
||
public enum Type { | ||
CLUSTER | ||
} | ||
} |
Oops, something went wrong.