-
Notifications
You must be signed in to change notification settings - Fork 7
/
ErrorCode.kt
28 lines (22 loc) · 735 Bytes
/
ErrorCode.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package io.embrace.android.embracesdk.spans
import io.embrace.android.embracesdk.annotation.BetaApi
import io.embrace.android.embracesdk.internal.spans.EmbraceAttributes
/**
* Attribute to categorize the broad reason a Span completed unsuccessfully.
*/
@BetaApi
public enum class ErrorCode : EmbraceAttributes.Attribute {
/**
* An application failure caused the Span to terminate
*/
FAILURE,
/**
* The operation tracked by the Span was terminated because the user abandoned and canceled it before it can complete successfully.
*/
USER_ABANDON,
/**
* The reason for the unsuccessful termination is unknown
*/
UNKNOWN;
override val canonicalName: String = "error_code"
}