Class ActorStillHasReservationsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.gustavblass.commons.exceptions.IllegalArgumentException
de.gustavblass.fsu.fmi.roombooking.exceptions.ActorStillHasReservationsException
- All Implemented Interfaces:
Serializable
@ResponseStatus(value=CONFLICT,
reason="The request was rejected because the user still has active reservations.")
public class ActorStillHasReservationsException
extends de.gustavblass.commons.exceptions.IllegalArgumentException
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intHow many Reservations are still active for theActorconcerned. -
Constructor Summary
ConstructorsConstructorDescriptionActorStillHasReservationsException(int reservationCount) SeeException().ActorStillHasReservationsException(String message, int reservationCount) SeeException(String).ActorStillHasReservationsException(String message, Throwable cause, int reservationCount) ActorStillHasReservationsException(Throwable cause, int reservationCount) SeeException(Throwable). -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
reservationCount
private final int reservationCountHow many Reservations are still active for theActorconcerned.
-
-
Constructor Details
-
ActorStillHasReservationsException
public ActorStillHasReservationsException(int reservationCount) SeeException(). -
ActorStillHasReservationsException
SeeException(String). -
ActorStillHasReservationsException
-
ActorStillHasReservationsException
SeeException(Throwable).
-