What problem does it solve?
This Skill provides a standardized set of common utilities, value objects, and exception handling mechanisms to ensure consistency and robustness across the project.
Core Features & Use Cases
- Type-Safe Value Objects: Use
Email, PhoneNumber, Money, and Rate for enhanced data integrity.
- Robust Exception Handling: Employ
KnownException, BizRuntimeException, and BizException for clear error management.
- Precondition Validation: Utilize
knownRequired* functions for concise and safe input validation.
- DateTime Utilities: Leverage
DateFormatter, SearchDates, and range classes for efficient date and time operations.
- String and DateTime Extensions: Benefit from convenient masking, formatting, and comparison functions.
- Use Case: When creating a new user entity, ensure the email address is validated using the
Email value object and that required fields are checked using knownRequiredNotBlank.
Quick Start
Use the common-module skill to create a new Money object representing 10000 Korean Won.