Class DomainException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.dmasone.identity.sharedkernel.domain.DomainException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IdempotencyKeyConflictException, InsufficientStockException, InvalidOrderException, InvalidStockReservationException, OrderNotFoundException, PaymentNotFoundException, ProductNotFoundException

public abstract class DomainException extends RuntimeException
Base exception for business rule failures that should be translated into a structured API error response. The code is stable enough for clients and tests, while the message remains human-readable.
See Also:
  • Constructor Details

    • DomainException

      protected DomainException(String code, String message)
  • Method Details