Implement update tool

This commit is contained in:
2024-02-01 16:51:20 +08:00
parent 1ce60d1bfb
commit 04587fbb7a
27 changed files with 204 additions and 75 deletions

View File

@@ -1,3 +1,11 @@
package top.fatweb.oxygen.api.exception
/**
* Database delete exception
*
* @param message Exception message
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class DatabaseDeleteException(message: String = "Database delete failed"): RuntimeException(message)

View File

@@ -1,3 +1,11 @@
package top.fatweb.oxygen.api.exception
/**
* Database insert exception
*
* @param message Exception message
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class DatabaseInsertException(message: String = "Database insert failed"): RuntimeException(message)

View File

@@ -1,3 +1,11 @@
package top.fatweb.oxygen.api.exception
/**
* Database select exception
*
* @param message Exception message
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class DatabaseSelectException(message: String = "Database select failed"): RuntimeException(message)

View File

@@ -1,3 +1,11 @@
package top.fatweb.oxygen.api.exception
/**
* Database update exception
*
* @param message Exception message
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class DatabaseUpdateException(message: String = "Database update failed"): RuntimeException(message)

View File

@@ -1,3 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Illegal version exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class IllegalVersionException : RuntimeException("Illegal Version")

View File

@@ -1,3 +1,10 @@
package top.fatweb.oxygen.api.exception
class MatchSensitiveWordException: RuntimeException("Match sensitive word")
/**
* Match sensitive word exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class MatchSensitiveWordException : RuntimeException("Match sensitive word")

View File

@@ -5,5 +5,6 @@ package top.fatweb.oxygen.api.exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class RequestTooFrequent: RuntimeException("Request too frequent")
class RequestTooFrequentException: RuntimeException("Request too frequent")

View File

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

View File

@@ -1,3 +0,0 @@
package top.fatweb.oxygen.api.exception
class ToolHasPublish : RuntimeException("The tool has been published and cannot be modified")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Tool has unpublished version exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class ToolHasUnpublishedVersionException : RuntimeException("Has unpublished version")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Tool under review exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class ToolUnderReviewException : RuntimeException("Tool under review")