Class EventoNotFound
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.modulink.Model.Eventi.EventoNotFound
- All Implemented Interfaces:
Serializable
Eccezione unchecked lanciata quando un'operazione su un
EventoEntity fallisce
perché l'entità richiesta non è stata trovata nel database.
Tipicamente utilizzata nel Service Layer per interrompere il flusso di esecuzione
e segnalare al Controller di restituire uno status HTTP 404 (Not Found).
Estende RuntimeException, quindi non richiede dichiarazione nel blocco throws.
- Since:
- 1.2.0
- Version:
- 1.0.1
- Author:
- Modulink Team
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventoNotFound(String message) Costruisce una nuova eccezione con il messaggio di dettaglio specificato. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EventoNotFound
Costruisce una nuova eccezione con il messaggio di dettaglio specificato.- Parameters:
message- Il messaggio che descrive l'errore (es. "Evento con ID X non trovato").- Since:
- 1.2.0
-