Top Description Fields Constructors Methods
java.nio.file.attribute

public Class UserPrincipalNotFoundException

extends IOException
Class Inheritance
Imports
java.io.IOException

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

Field Summary

Modifier and TypeField and Description
private final String
name

The user principal name.

pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
UserPrincipalNotFoundException(String
the principal name; may be null
name
)

Constructs an instance of this class.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the user principal name or null
getName
()

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

Field Detail

nameback to summary
private final String name

The user principal name.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Annotations
@Serial

Constructor Detail

UserPrincipalNotFoundExceptionback to summary
public UserPrincipalNotFoundException(String name)

Constructs an instance of this class.

Parameters
name:String

the principal name; may be null

Method Detail

getNameback to summary
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