Class BusinessRuleViolationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.example.orderplatform.BusinessRuleViolationException
All Implemented Interfaces:
Serializable

public class BusinessRuleViolationException extends RuntimeException
Raised when a request would violate a business invariant enforced by the domain model or use case.
See Also:
  • Constructor Details

    • BusinessRuleViolationException

      public BusinessRuleViolationException(String message)