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, exceptionForNonNullViolation
default Throwable exceptionForGeneralViolation(String message)
ExceptionComposer.Base
A 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.Base
message
- A message attached to the composed exception.Copyright © 2024. All rights reserved.