UserPrincipalNotFoundException  |  API reference  |  Android Developers (original) (raw)

open class UserPrincipalNotFoundException : IOException

kotlin.Any
kotlin.Throwable
java.lang.Exception
java.io.IOException

Checked exception thrown when a lookup of [UserPrincipal](/reference/kotlin/java/nio/file/attribute/UserPrincipal) fails because the principal does not exist.

Summary

Public constructors
UserPrincipalNotFoundException(name: String!) Constructs an instance of this class.
Public methods
open String! getName() Returns the user principal name if this exception was created with the user principal name that was not found, otherwise null.

Public constructors

UserPrincipalNotFoundException

UserPrincipalNotFoundException(name: String!)

Constructs an instance of this class.

Parameters
name String!: the principal name; may be null

Public methods

getName

open fun getName(): String!

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

Return
String! the user principal name or null

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.