mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-05 10:17:27 +08:00
[O] More logging
This commit is contained in:
@@ -30,7 +30,10 @@ annotation class Doc(
|
||||
|
||||
// Make it easier to throw a ResponseStatusException
|
||||
operator fun HttpStatus.invoke(message: String? = null): Nothing = throw ApiException(value(), message ?: this.reasonPhrase)
|
||||
operator fun Int.minus(message: String): Nothing = throw ApiException(this, message)
|
||||
operator fun Int.minus(message: String): Nothing {
|
||||
ApiException.log.info("> Error $this: $message")
|
||||
throw ApiException(this, message)
|
||||
}
|
||||
|
||||
// Email validation
|
||||
// https://www.baeldung.com/java-email-validation-regex
|
||||
|
||||
Reference in New Issue
Block a user