Repository navigation
Releases
Releases · lentiancn/godikit-exception-java
v1.0.0
Features
-
Plugin-based Error Code System
ErrorCodeinterface for custom error code definitionsErrorCodeRegistrywith singleton pattern for centralized management- SPI-based dynamic loading via
ErrorCodeProvider
-
Dual Exception Types
GlobalException- Checked exception for recoverable errorsGlobalRuntimeException- Unchecked exception for programming errors- Bidirectional conversion between exception types
-
Built-in Error Codes
BaseErrorCodeenum with 6 common error codes:NO_ERROR(000000)SYSTEM_ERROR(000010)UNKNOWN_ERROR(000011)PARAM_ERROR(000020)PARAM_MISSING_ERROR(000021)PARAM_INVALID_ERROR(000022)
-
Enhanced Exception Handling
- Unified error message format:
[errorSource] [code description] message isRetryableflag support for fault-tolerant systems- Rich constructor overloads for various scenarios
- Unified error message format:
-
Utility Classes
StackTraceUtils.toString()- Convert exceptions to string