Adds validation and error handling to signup

This commit is contained in:
2025-12-05 00:15:20 -06:00
parent 8b808bfd34
commit 302feeab1e
6 changed files with 30 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
package net.halfbinary.scavengerhuntapi.error.exception
class InvalidEmailException(email: String): RuntimeException("The email ${email} is not valid.")

View File

@@ -0,0 +1,3 @@
package net.halfbinary.scavengerhuntapi.error.exception
class PreexistingAccountException: RuntimeException("An account with that email already exists.")