Implement update tool
This commit is contained in:
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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")
|
||||
@@ -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")
|
||||
@@ -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")
|
||||
@@ -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")
|
||||
@@ -1,3 +0,0 @@
|
||||
package top.fatweb.oxygen.api.exception
|
||||
|
||||
class ToolHasPublish : RuntimeException("The tool has been published and cannot be modified")
|
||||
@@ -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")
|
||||
@@ -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")
|
||||
Reference in New Issue
Block a user