Stay organized with collections
Save and categorize content based on your preferences.
CertPathBuilderException
open class CertPathBuilderException : GeneralSecurityException
An exception indicating one of a variety of problems encountered when building a certification path with a CertPathBuilder
.
A CertPathBuilderException
provides support for wrapping exceptions. The getCause
method returns the throwable, if any, that caused this exception to be thrown.
Concurrent Access
Unless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.
Summary
Public constructors |
Creates a CertPathBuilderException with null as its detail message.
|
Creates a CertPathBuilderException with the given detail message.
|
Creates a CertPathBuilderException with the specified detail message and cause.
|
Creates a CertPathBuilderException that wraps the specified throwable.
|
Public constructors
CertPathBuilderException
CertPathBuilderException()
Creates a CertPathBuilderException
with null
as its detail message.
CertPathBuilderException
CertPathBuilderException(msg: String!)
Creates a CertPathBuilderException
with the given detail message. The detail message is a String
that describes this particular exception in more detail.
Parameters |
msg |
String!: the detail message |
CertPathBuilderException
CertPathBuilderException(
msg: String!,
cause: Throwable!)
Creates a CertPathBuilderException
with the specified detail message and cause.
Parameters |
msg |
String!: the detail message |
cause |
Throwable!: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
CertPathBuilderException
CertPathBuilderException(cause: Throwable!)
Creates a CertPathBuilderException
that wraps the specified throwable. This allows any exception to be converted into a CertPathBuilderException
, while retaining information about the wrapped exception, which may be useful for debugging. The detail message is set to (cause==null ? null : cause.toString()
) (which typically contains the class and detail message of cause).
Parameters |
cause |
Throwable!: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
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,["# CertPathBuilderException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCertPathBuilderException\n========================\n\n```\nopen class CertPathBuilderException : GeneralSecurityException\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.security.GeneralSecurityException](../GeneralSecurityException.html#) ||\n| | | | ↳ | [java.security.cert.CertPathBuilderException](#) |\n\nAn exception indicating one of a variety of problems encountered when building a certification path with a `CertPathBuilder`.\n\nA `CertPathBuilderException` provides support for wrapping exceptions. The [getCause](../../lang/Throwable.html#getCause()) method returns the throwable, if any, that caused this exception to be thrown.\n\n**Concurrent Access**\n\nUnless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [CertPathBuilderException](#CertPathBuilderException())`()` Creates a `CertPathBuilderException` with `null` as its detail message. |\n| [CertPathBuilderException](#CertPathBuilderException(kotlin.String))`(`msg:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Creates a `CertPathBuilderException` with the given detail message. |\n| [CertPathBuilderException](#CertPathBuilderException(kotlin.String,%20kotlin.Throwable))`(`msg:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Creates a `CertPathBuilderException` with the specified detail message and cause. |\n| [CertPathBuilderException](#CertPathBuilderException(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Creates a `CertPathBuilderException` that wraps the specified throwable. |\n\nPublic constructors\n-------------------\n\n### CertPathBuilderException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCertPathBuilderException()\n```\n\nCreates a `CertPathBuilderException` with `null` as its detail message. \n\n### CertPathBuilderException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCertPathBuilderException(msg: String!)\n```\n\nCreates a `CertPathBuilderException` with the given detail message. The detail message is a `String` that describes this particular exception in more detail.\n\n| Parameters ||\n|-------|-------------------------------------------------------------------------------------------------------|\n| `msg` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message |\n\n### CertPathBuilderException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCertPathBuilderException(\n msg: String!, \n cause: Throwable!)\n```\n\nCreates a `CertPathBuilderException` with the specified detail message and cause.\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `msg` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause (which is saved for later retrieval by the [getCause()](../../lang/Throwable.html#getCause()) method). (A `null` value is permitted, and indicates that the cause is nonexistent or unknown.) |\n\n### CertPathBuilderException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCertPathBuilderException(cause: Throwable!)\n```\n\nCreates a `CertPathBuilderException` that wraps the specified throwable. This allows any exception to be converted into a `CertPathBuilderException`, while retaining information about the wrapped exception, which may be useful for debugging. The detail message is set to (`cause==null ? null : cause.toString()`) (which typically contains the class and detail message of cause).\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause (which is saved for later retrieval by the [getCause()](../../lang/Throwable.html#getCause()) method). (A `null` value is permitted, and indicates that the cause is nonexistent or unknown.) |"]]