Adds validation and error handling to signup
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package net.halfbinary.scavengerhuntapi.error.exception
|
||||
|
||||
class InvalidEmailException(email: String): RuntimeException("The email ${email} is not valid.")
|
||||
@@ -0,0 +1,3 @@
|
||||
package net.halfbinary.scavengerhuntapi.error.exception
|
||||
|
||||
class PreexistingAccountException: RuntimeException("An account with that email already exists.")
|
||||
Reference in New Issue
Block a user