# ApplicationErrorReport.CrashInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# CrashInfo

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/app/ApplicationErrorReport.CrashInfo "View this page in Java")  

```
open class CrashInfo
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                               ||
| ↳ | [android.app.ApplicationErrorReport.CrashInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#) |

Describes an application crash.

## Summary

|                                                                                                                                            Public constructors                                                                                                                                            ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [CrashInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#CrashInfo())`()` Create an uninitialized instance of CrashInfo.                                                                                                                                |
| [CrashInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#CrashInfo(android.os.Parcel))`(`in:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)!`)` Create an instance of CrashInfo initialized from a Parcel.          |
| [CrashInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.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. |

|                                                                                                                                                                                                                               Public methods                                                                                                                                                                                                                               ||
|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [dump](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#dump(android.util.Printer,%20kotlin.String))`(`pw:` `[Printer](https://developer.android.com/reference/kotlin/android/util/Printer.html#)!`, `prefix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Dump a CrashInfo instance to a Printer.  |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)!`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Save a CrashInfo instance to a parcel. |

|                                                                                                                                        Properties                                                                                                                                        ||
|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [exceptionClassName](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#exceptionClassName:kotlin.String) Class name of the exception that caused the crash. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [exceptionMessage](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#exceptionMessage:kotlin.String) Message stored in the exception.                       |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [stackTrace](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#stackTrace:kotlin.String) Stack trace.                                                       |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [throwClassName](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#throwClassName:kotlin.String) Class which the exception was thrown from.                 |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [throwFileName](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#throwFileName:kotlin.String) File which the exception was thrown from.                    |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)        | [throwLineNumber](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#throwLineNumber:kotlin.Int) Line number the exception was thrown from.                  |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [throwMethodName](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.CrashInfo#throwMethodName:kotlin.String) Method which the exception was thrown from.              |

## Public constructors

### CrashInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
CrashInfo()
```

Create an uninitialized instance of CrashInfo.  

### CrashInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
CrashInfo(in: Parcel!)
```

Create an instance of CrashInfo initialized from a Parcel.  

### CrashInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
CrashInfo(tr: Throwable!)
```

Create an instance of CrashInfo initialized from an exception.

## Public methods

### dump

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun dump(
    pw: Printer!, 
    prefix: String!
): Unit
```

Dump a CrashInfo instance to a Printer.  

### writeToParcel

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun writeToParcel(
    dest: Parcel!, 
    flags: Int
): Unit
```

Save a CrashInfo instance to a parcel.

## Properties

### exceptionClassName

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var exceptionClassName: String!
```

Class name of the exception that caused the crash.  

### exceptionMessage

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var exceptionMessage: String!
```

Message stored in the exception.  

### stackTrace

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var stackTrace: String!
```

Stack trace.  

### throwClassName

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var throwClassName: String!
```

Class which the exception was thrown from.  

### throwFileName

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var throwFileName: String!
```

File which the exception was thrown from.  

### throwLineNumber

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var throwLineNumber: Int
```

Line number the exception was thrown from.  

### throwMethodName

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var throwMethodName: String!
```

Method which the exception was thrown from.