Change namespace to top.fatweb.oxygen.api

This commit is contained in:
2023-12-28 13:39:42 +08:00
parent 605f3f4152
commit 47baa06125
231 changed files with 698 additions and 682 deletions

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Account need initialize exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class AccountNeedInitException : RuntimeException("Account need initialize")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Account need reset password exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class AccountNeedResetPasswordException : RuntimeException("Account need reset password")

View File

@@ -0,0 +1,13 @@
package top.fatweb.oxygen.api.exception
/**
* Email settings not configured exception
*
* @param configs Configs not config
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class NoEmailConfigException(
vararg configs: String
) : RuntimeException("Email settings not configured: ${configs.joinToString(", ")}")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* No record found exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class NoRecordFoundException : RuntimeException("No record found")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* No verification required exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class NoVerificationRequiredException : RuntimeException("No verification required")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Retrieve code error or expired exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class RetrieveCodeErrorOrExpiredException : RuntimeException("Retrieve code error or expired")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Token has expired exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class TokenHasExpiredException : RuntimeException("Token has expired")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* User not found exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class UserNotFoundException : RuntimeException("User not found")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Verification code error or expired exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class VerificationCodeErrorOrExpiredException : RuntimeException("Verification code is error or has expired")