Stay organized with collections
Save and categorize content based on your preferences.
CrashInfo
open class CrashInfo
Describes an application crash.
Summary
Public constructors |
Create an uninitialized instance of CrashInfo.
|
Create an instance of CrashInfo initialized from a Parcel.
|
Create an instance of CrashInfo initialized from an exception.
|
Public methods |
open Unit |
Dump a CrashInfo instance to a Printer.
|
open Unit |
Save a CrashInfo instance to a parcel.
|
Properties |
String! |
Class name of the exception that caused the crash.
|
String! |
Message stored in the exception.
|
String! |
Stack trace.
|
String! |
Class which the exception was thrown from.
|
String! |
File which the exception was thrown from.
|
Int |
Line number the exception was thrown from.
|
String! |
Method which the exception was thrown from.
|
Public constructors
CrashInfo
CrashInfo()
Create an uninitialized instance of CrashInfo.
CrashInfo
CrashInfo(in: Parcel!)
Create an instance of CrashInfo initialized from a Parcel.
CrashInfo
CrashInfo(tr: Throwable!)
Create an instance of CrashInfo initialized from an exception.
Public methods
dump
open fun dump(
pw: Printer!,
prefix: String!
): Unit
Dump a CrashInfo instance to a Printer.
writeToParcel
open fun writeToParcel(
dest: Parcel!,
flags: Int
): Unit
Save a CrashInfo instance to a parcel.
Properties
exceptionClassName
var exceptionClassName: String!
Class name of the exception that caused the crash.
exceptionMessage
var exceptionMessage: String!
Message stored in the exception.
stackTrace
var stackTrace: String!
Stack trace.
throwClassName
var throwClassName: String!
Class which the exception was thrown from.
throwFileName
var throwFileName: String!
File which the exception was thrown from.
throwLineNumber
var throwLineNumber: Int
Line number the exception was thrown from.
throwMethodName
var throwMethodName: String!
Method which the exception was thrown from.
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,["# ApplicationErrorReport.CrashInfo\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCrashInfo\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/ApplicationErrorReport.CrashInfo \"View this page in Java\") \n\n```\nopen class CrashInfo\n```\n\n|---|---------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.app.ApplicationErrorReport.CrashInfo](#) |\n\nDescribes an application crash.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [CrashInfo](#CrashInfo())`()` Create an uninitialized instance of CrashInfo. |\n| [CrashInfo](#CrashInfo(android.os.Parcel))`(`in:` `[Parcel](../os/Parcel.html#)!`)` Create an instance of CrashInfo initialized from a Parcel. |\n| [CrashInfo](#CrashInfo(kotlin.Throwable))`(`tr:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Create an instance of CrashInfo initialized from an exception. |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [dump](#dump(android.util.Printer,%20kotlin.String))`(`pw:` `[Printer](../util/Printer.html#)!`, `prefix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Dump a CrashInfo instance to a Printer. |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](../os/Parcel.html#)!`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Save a CrashInfo instance to a parcel. |\n\n| Properties ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [exceptionClassName](#exceptionClassName:kotlin.String) Class name of the exception that caused the crash. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [exceptionMessage](#exceptionMessage:kotlin.String) Message stored in the exception. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [stackTrace](#stackTrace:kotlin.String) Stack trace. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [throwClassName](#throwClassName:kotlin.String) Class which the exception was thrown from. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [throwFileName](#throwFileName:kotlin.String) File which the exception was thrown from. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [throwLineNumber](#throwLineNumber:kotlin.Int) Line number the exception was thrown from. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [throwMethodName](#throwMethodName:kotlin.String) Method which the exception was thrown from. |\n\nPublic constructors\n-------------------\n\n### CrashInfo\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCrashInfo()\n```\n\nCreate an uninitialized instance of CrashInfo. \n\n### CrashInfo\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCrashInfo(in: Parcel!)\n```\n\nCreate an instance of CrashInfo initialized from a Parcel. \n\n### CrashInfo\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCrashInfo(tr: Throwable!)\n```\n\nCreate an instance of CrashInfo initialized from an exception.\n\nPublic methods\n--------------\n\n### dump\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun dump(\n pw: Printer!, \n prefix: String!\n): Unit\n```\n\nDump a CrashInfo instance to a Printer. \n\n### writeToParcel\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun writeToParcel(\n dest: Parcel!, \n flags: Int\n): Unit\n```\n\nSave a CrashInfo instance to a parcel.\n\nProperties\n----------\n\n### exceptionClassName\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar exceptionClassName: String!\n```\n\nClass name of the exception that caused the crash. \n\n### exceptionMessage\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar exceptionMessage: String!\n```\n\nMessage stored in the exception. \n\n### stackTrace\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar stackTrace: String!\n```\n\nStack trace. \n\n### throwClassName\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar throwClassName: String!\n```\n\nClass which the exception was thrown from. \n\n### throwFileName\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar throwFileName: String!\n```\n\nFile which the exception was thrown from. \n\n### throwLineNumber\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar throwLineNumber: Int\n```\n\nLine number the exception was thrown from. \n\n### throwMethodName\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar throwMethodName: String!\n```\n\nMethod which the exception was thrown from."]]