UserPrincipalNotFoundException

public class UserPrincipalNotFoundException
extends IOException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.nio.file.attribute.UserPrincipalNotFoundException


Checked exception thrown when a lookup of UserPrincipal fails because the principal does not exist.

Summary

Public constructors

UserPrincipalNotFoundException(String name)

Constructs an instance of this class.

Public methods

String getName()

Returns the user principal name if this exception was created with the user principal name that was not found, otherwise null.

Inherited methods

Public constructors

UserPrincipalNotFoundException

Added in API level 26
public UserPrincipalNotFoundException (String name)

Constructs an instance of this class.

Parameters
name String: the principal name; may be null

Public methods

getName

Added in API level 26
public String getName ()

Returns the user principal name if this exception was created with the user principal name that was not found, otherwise null.

Returns
String the user principal name or null