15 lines
394 B
Java
15 lines
394 B
Java
|
|
package me.belkacemi.iotalarm.domain.exception;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Violation d'une regle metier.
|
||
|
|
*
|
||
|
|
* <p>Volontairement non typee Spring : le domaine ne connait pas HTTP. C'est un
|
||
|
|
* {@code @RestControllerAdvice} de la couche presentation qui la traduit en 409.</p>
|
||
|
|
*/
|
||
|
|
public class DomainException extends RuntimeException {
|
||
|
|
|
||
|
|
public DomainException(String message) {
|
||
|
|
super(message);
|
||
|
|
}
|
||
|
|
}
|