Stay organized with collections
Save and categorize content based on your preferences.
UserPrincipalNotFoundException
open class UserPrincipalNotFoundException : IOException
Checked exception thrown when a lookup of UserPrincipal
fails because the principal does not exist.
Summary
Public constructors |
Constructs an instance of this class.
|
Public methods |
open String! |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# UserPrincipalNotFoundException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nUserPrincipalNotFoundException\n==============================\n\n```\nopen class UserPrincipalNotFoundException : IOException\n```\n\n|---|---|---|---|-------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||\n| | ↳ | [java.lang.Exception](../../../lang/Exception.html#) |||\n| | | ↳ | [java.io.IOException](../../../io/IOException.html#) ||\n| | | | ↳ | [java.nio.file.attribute.UserPrincipalNotFoundException](#) |\n\nChecked exception thrown when a lookup of [UserPrincipal](/reference/kotlin/java/nio/file/attribute/UserPrincipal) fails because the principal does not exist.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [UserPrincipalNotFoundException](#UserPrincipalNotFoundException(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an instance of this class. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getName](#getName())`()` Returns the user principal name if this exception was created with the user principal name that was not found, otherwise `null`. |\n\nPublic constructors\n-------------------\n\n### UserPrincipalNotFoundException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUserPrincipalNotFoundException(name: String!)\n```\n\nConstructs an instance of this class.\n\n| Parameters ||\n|--------|----------------------------------------------------------------------------------------------------------------------|\n| `name` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the principal name; may be `null` |\n\nPublic methods\n--------------\n\n### getName\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getName(): String!\n```\n\nReturns the user principal name if this exception was created with the user principal name that was not found, otherwise `null`.\n\n| Return ||\n|-----------------------------------------------------------------------------------|-----------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the user principal name or `null` |"]]