package com.allanditzel.dashboard.exception.test; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; /** * Test exception to reflect that the current user is not authenticated. */ @ResponseStatus(value = HttpStatus.UNAUTHORIZED, reason = "Not authenticated.") public class NotAuthenticatedException extends RuntimeException { public NotAuthenticatedException() { } public NotAuthenticatedException(String message) { super(message); } public NotAuthenticatedException(String message, Throwable cause) { super(message, cause); } public NotAuthenticatedException(Throwable cause) { super(cause); } public NotAuthenticatedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } }