- All Implemented Interfaces:
public class UserPrincipalNotFoundException extends IOException
Checked exception thrown when a lookup of
UserPrincipalfails because the principal does not exist.
- See Also:
- Serialized Form
Constructors Constructor Description
String name)(Constructs an instance of this class.
Modifier and Type Method Description
()Returns the user principal name if this exception was created with the user principal name that was not found, otherwise
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
UserPrincipalNotFoundExceptionpublic UserPrincipalNotFoundException(String name)Constructs an instance of this class.
name- the principal name; may be
getNamepublic String getName()Returns the user principal name if this exception was created with the user principal name that was not found, otherwise
- the user principal name or