public static interface ExceptionComposer.ForRequire extends ExceptionComposer.Base
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExceptionComposer.ForRequire.Default |
| Modifier and Type | Method and Description |
|---|---|
default Throwable |
exceptionForGeneralViolation(String message)
A method to compose an exception for a general violation.
|
Throwable |
exceptionForIllegalArgument(String message) |
exceptionForIllegalState, exceptionForNonNullViolationdefault Throwable exceptionForGeneralViolation(String message)
ExceptionComposer.BaseA method to compose an exception for a general violation. An extension-point to customize the exception to be thrown for a certain context.
exceptionForGeneralViolation in interface ExceptionComposer.Basemessage - A message attached to the composed exception.Copyright © 2025. All rights reserved.