001package usecase.auth; 002 003import javax.ejb.ApplicationException; 004import java.time.Instant; 005 006/** 007 * Eccezione relativa al ban. 008 */ 009@ApplicationException(rollback = true) 010public class BannedUserException extends RuntimeException{ 011 private Instant duration; 012 013 public Instant getDuration() { 014 return duration; 015 } 016 017 public BannedUserException() { 018 } 019 020 public BannedUserException(Instant duration){ 021 022 } 023}