Stay organized with collections
Save and categorize content based on your preferences.
CertStoreException
open class CertStoreException : GeneralSecurityException
An exception indicating one of a variety of problems retrieving certificates and CRLs from a CertStore
.
A CertStoreException
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 CertStoreException with null as its detail message.
|
Creates a CertStoreException with the given detail message.
|
Creates a CertStoreException with the specified detail message and cause.
|
Creates a CertStoreException that wraps the specified throwable.
|
Public constructors
CertStoreException
CertStoreException()
Creates a CertStoreException
with null
as its detail message.
CertStoreException
CertStoreException(msg: String!)
Creates a CertStoreException
with the given detail message. A detail message is a String
that describes this particular exception.
Parameters |
msg |
String!: the detail message |
CertStoreException
CertStoreException(
msg: String!,
cause: Throwable!)
Creates a CertStoreException
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.) |
CertStoreException
CertStoreException(cause: Throwable!)
Creates a CertStoreException
that wraps the specified throwable. This allows any exception to be converted into a CertStoreException
, while retaining information about the cause, 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,["# CertStoreException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCertStoreException\n==================\n\n```\nopen class CertStoreException : 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.CertStoreException](#) |\n\nAn exception indicating one of a variety of problems retrieving certificates and CRLs from a `CertStore`.\n\nA `CertStoreException` 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| [CertStoreException](#CertStoreException())`()` Creates a `CertStoreException` with `null` as its detail message. |\n| [CertStoreException](#CertStoreException(kotlin.String))`(`msg:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Creates a `CertStoreException` with the given detail message. |\n| [CertStoreException](#CertStoreException(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 `CertStoreException` with the specified detail message and cause. |\n| [CertStoreException](#CertStoreException(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Creates a `CertStoreException` that wraps the specified throwable. |\n\nPublic constructors\n-------------------\n\n### CertStoreException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCertStoreException()\n```\n\nCreates a `CertStoreException` with `null` as its detail message. \n\n### CertStoreException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCertStoreException(msg: String!)\n```\n\nCreates a `CertStoreException` with the given detail message. A detail message is a `String` that describes this particular exception.\n\n| Parameters ||\n|-------|-------------------------------------------------------------------------------------------------------|\n| `msg` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message |\n\n### CertStoreException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCertStoreException(\n msg: String!, \n cause: Throwable!)\n```\n\nCreates a `CertStoreException` 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### CertStoreException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCertStoreException(cause: Throwable!)\n```\n\nCreates a `CertStoreException` that wraps the specified throwable. This allows any exception to be converted into a `CertStoreException`, while retaining information about the cause, 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.) |"]]