Stay organized with collections
Save and categorize content based on your preferences.
NotLinkException
open class NotLinkException : FileSystemException
Checked exception thrown when a file system operation fails because a file is not a symbolic link.
Summary
Public constructors |
Constructs an instance of this class.
|
Constructs an instance of this class.
|
Public constructors
NotLinkException
NotLinkException(file: String!)
Constructs an instance of this class.
Parameters |
file |
String!: a string identifying the file or null if not known |
NotLinkException
NotLinkException(
file: String!,
other: String!,
reason: String!)
Constructs an instance of this class.
Parameters |
file |
String!: a string identifying the file or null if not known |
other |
String!: a string identifying the other file or null if not known |
reason |
String!: a reason message with additional information 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,["# NotLinkException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNotLinkException\n================\n\n```\nopen class NotLinkException : FileSystemException\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.FileSystemException](/reference/kotlin/java/nio/file/FileSystemException) ||\n| | | | | ↳ | [java.nio.file.NotLinkException](#) |\n\nChecked exception thrown when a file system operation fails because a file is not a symbolic link.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [NotLinkException](#NotLinkException(kotlin.String))`(`file:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an instance of this class. |\n| [NotLinkException](#NotLinkException(kotlin.String,%20kotlin.String,%20kotlin.String))`(`file:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `other:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an instance of this class. |\n\n| Inherited functions ||\n|---|---|\n| From class [FileSystemException](/reference/kotlin/java/nio/file/FileSystemException) |-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getFile](/reference/kotlin/java/nio/file/FileSystemException#getFile())`()` Returns the file used to create this exception. \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getOtherFile](/reference/kotlin/java/nio/file/FileSystemException#getOtherFile())`()` Returns the other file used to create this exception. \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getReason](/reference/kotlin/java/nio/file/FileSystemException#getReason())`()` Returns the string explaining why the file system operation failed. \u003cbr /\u003e | ||\n\n| Inherited properties ||\n|---|---|\n| From class [FileSystemException](/reference/kotlin/java/nio/file/FileSystemException) |-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [message](/reference/kotlin/java/nio/file/FileSystemException#message:kotlin.String) Returns the detail message string. \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### NotLinkException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNotLinkException(file: String!)\n```\n\nConstructs an instance of this class.\n\n| Parameters ||\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `file` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: a string identifying the file or `null` if not known |\n\n### NotLinkException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNotLinkException(\n file: String!, \n other: String!, \n reason: String!)\n```\n\nConstructs an instance of this class.\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `file` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: a string identifying the file or `null` if not known |\n| `other` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: a string identifying the other file or `null` if not known |\n| `reason` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: a reason message with additional information or `null` |"]]