docs(global): Improve documentation comments

Enriched the content of the documentation to ensure every package and
class has proper documentation comments; Modified the formatting for
consistent and neat presentation.
This commit is contained in:
Zihlu Wang
2023-07-30 02:27:05 +08:00
parent 89837f78f3
commit 65daccf478
19 changed files with 616 additions and 186 deletions
@@ -18,28 +18,96 @@
package cn.org.codecrafters.devkit.core.exceptions;
/**
* NotImplementedException
* NotImplementedException - Custom Runtime Exception
* <p>
* The {@code NotImplementedException} class is a custom runtime exception
* that represents a situation where a particular method or functionality is
* not implemented or is currently unavailable in the codebase. It extends the
* standard {@code RuntimeException} class, making it an unchecked exception.
* <p>
* This exception is typically thrown when developers need to indicate that a
* specific part of the code is incomplete or requires further implementation.
* It serves as a placeholder to highlight unfinished sections of the
* application during development and testing phases.
* <p>
* Usage Example:
* <pre>
* public void someMethod() {
* // Some code...
* throw new NotImplementedException("""
* This feature will be implemented in a future release.
* """);
* }
* </pre>
* <p>
* For more information and the latest version of JDevKit, please visit our
* website <a href="https://codecrafters.org.cn">codecrafters.org.cn</a>.
* <p>
* <h4>Contact</h4>
* <ul>
* <li>
* <a href="https://github.com/CodeCraftersCN/jdevkit/issues/new"
* >GitHub Issues</a>
* </li>
* <li>
* <a href="https://discord.gg/">Discord Community</a>
* </li>
* </ul>
*
* @author Zihlu Wang
* @since 29 Jul 2023
* @version 1.0.0
* @see RuntimeException
* @since 1.0.0
*/
public class NotImplementedException extends RuntimeException {
/**
* Creates a new {@code NotImplementedException} with no specific error
* message.
*/
public NotImplementedException() {
}
/**
* Creates a new {@code NotImplementedException} with the provided error
* message.
*
* @param message the error message associated with this exception
*/
public NotImplementedException(String message) {
super(message);
}
/**
* Creates a new {@code NotImplementedException} with the specified error
* message and a cause for this exception.
*
* @param message the error message associated with this exception
* @param cause the cause of this exception
*/
public NotImplementedException(String message, Throwable cause) {
super(message, cause);
}
/**
* Creates a new {@code NotImplementedException} with the specified cause.
*
* @param cause the cause of this exception
*/
public NotImplementedException(Throwable cause) {
super(cause);
}
/**
* Creates a new {@code NotImplementedException} with the specified error
* message, cause, suppression flag, and stack trace writable flag.
*
* @param message the error message associated with this
* exception
* @param cause the cause of this exception
* @param enableSuppression whether suppression is enabled or disabled
* @param writableStackTrace whether the stack trace should be writable
*/
public NotImplementedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
@@ -16,9 +16,28 @@
*/
/**
* The core package for JDevKit, containing the core classes of JDevKit.
* This package is a part of JDevKit, an open-source Java Development Kit that
* provides a set of convenient tools to streamline code development and
* enhance productivity. This package serves as the core package containing
* common exceptions that are used throughout the entireJDevKit project.
* <p>
* JDevKit is designed to be modular, and other specific feature modules within
* the library may rely on these exceptions from the core package.
* <p>
* For more information and the latest version of JDevKit, please visit our
* website <a href="https://codecrafters.org.cn">codecrafters.org.cn</a>.
* <p>
* <h4>Contact</h4>
* <ul>
* <li>
* <a href="https://github.com/CodeCraftersCN/jdevkit/issues/new"
* >GitHub Issues</a>
* </li>
* <li>
* <a href="https://discord.gg/">Discord Community</a>
* </li>
* </ul>
*
* @author Zihlu Wang
* @since 29 Jul 2023
* @since 1.0.0
*/
package cn.org.codecrafters.devkit.core;
@@ -16,12 +16,25 @@
*/
/**
* JDevKit package, please see documents for more details.
* <h3>JDevKit - Java Development Kit</h3>
* <p>
* You may check the details of JDevKit at <a
* href="https://codecrafters.org.cn/JDevKit"> codecrafters.org.cn </a>
*
* @author Zihlu Wang
* @since 1.0.0
* This package is the main part of JDevKit, an open-source Java class library
* that provides a set of convenient tools to streamline code development and
* enhance productivity. This package serves as the root package for several
* modules, containing devkit-core, guid and dev-utils module.
* <p>
* For more information and the latest version of JDevKit, please visit our
* website <a href="https://codecrafters.org.cn">codecrafters.org.cn</a>.
* <p>
* <h4>Contact</h4>
* <ul>
* <li>
* <a href="https://github.com/CodeCraftersCN/jdevkit/issues/new"
* >GitHub Issues</a>
* </li>
* <li>
* <a href="https://discord.gg/">Discord Community</a>
* </li>
* </ul>
*/
package cn.org.codecrafters.devkit;