package com.codebyte.api.auth.service;

import com.codebyte.api.common.error.ApiException;
import com.codebyte.api.common.error.ErrorCode;

/** Thrown when a valid token references a user that no longer exists. */
public class PrincipalNotFoundException extends ApiException {

    public PrincipalNotFoundException() {
        super(ErrorCode.UNAUTHENTICATED, "Authenticated user no longer exists");
    }
}
