Skip to content

Releases

v1.0.0

Choose a tag to compare

@lentiancn lentiancn released this 19 Oct 04:55

Features

  • Plugin-based Error Code System

    • ErrorCode interface for custom error code definitions
    • ErrorCodeRegistry with singleton pattern for centralized management
    • SPI-based dynamic loading via ErrorCodeProvider
  • Dual Exception Types

    • GlobalException - Checked exception for recoverable errors
    • GlobalRuntimeException - Unchecked exception for programming errors
    • Bidirectional conversion between exception types
  • Built-in Error Codes

    • BaseErrorCode enum 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
    • isRetryable flag support for fault-tolerant systems
    • Rich constructor overloads for various scenarios
  • Utility Classes

    • StackTraceUtils.toString() - Convert exceptions to string