UserPrincipalNotFoundException — 조회한 UserPrincipal이 존재하지 않을 때 발생하는 예외
UserPrincipalNotFoundException — 조회한 UserPrincipal이 존재하지 않을 때 발생하는 예외
UserPrincipalNotFoundException은 UserPrincipal 조회가 실패했는데 그 이유가 principal이 존재하지 않기 때문일 때 발생하는 확인된(checked) 예외예요.
본문
public class UserPrincipalNotFoundException extends IOException
UserPrincipal 조회가 실패했는데 그 이유가 principal이 존재하지 않기 때문일 때 발생하는 checked 예외예요. java.io.IOException을 상속받으며 Serializable 인터페이스를 구현해요. Java 1.7부터 사용할 수 있어요.
생성자
public UserPrincipalNotFoundException(String name)
이 클래스의 인스턴스를 구성해요.
매개변수: name — principal 이름, null일 수 있음
getName
public String getName()
이 예외가 찾을 수 없었던 사용자 principal 이름으로 생성된 경우 그 이름을 반환하고, 그렇지 않으면 null을 반환해요.
반환값: 사용자 principal 이름 또는 null
선언된 메서드
Throwable에 선언된 메서드: addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
Object에 선언된 메서드: clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait